From patchwork Fri Oct 17 18:31:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 3274 Received: (qmail 29175 invoked by alias); 17 Oct 2014 18:31:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 29160 invoked by uid 89); 17 Oct 2014 18:31:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Fix NPTL build error when missing __NR_set_robust_list. Message-Id: <20141017183128.5378D2C2452@topped-with-meat.com> Date: Fri, 17 Oct 2014 11:31:28 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=sCUmNof-QcX7PVYYQOsA:9 a=CjuIK1q_8ugA:10 Almost all the references to the set_robust_list system call are conditionalized. This one was not. Thanks, Roland 2014-10-17 Roland McGrath * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on [__NR_set_robust_list]. --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -162,9 +162,11 @@ static void __nptl_set_robust (struct pthread *self) { +#ifdef __NR_set_robust_list INTERNAL_SYSCALL_DECL (err); INTERNAL_SYSCALL (set_robust_list, err, 2, &self->robust_head, sizeof (struct robust_list_head)); +#endif }