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: 400608 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 58F191400B8 for ; Sat, 18 Oct 2014 05:31:39 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=yI6oBWUAJaFhU1AOwP1OjPvXwKY4ErdVzlyw8x5Eonr1AK jOnK2KoaFMCBzEWzgw2R8lA9ki2ytKHhhPqx0N7bmM/uQ9dMDFltS6QHWOS28ppQ e14sA5wIRJ0aav5/X8Y43YAffiIdoBZ3k3o0Km0PhoU42hkFBW7syDz0WWDms= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=j6zQu1kS20IQQT0IMO8QoOlZlp8=; b=hyfl7T5CbWZCSuafWSi7 GRjCM2T3HOSUzyfs3UMxl4pqEz4Km7eADmgTXsnj8KGPQYDHLCUtosmJi1xgcVYY drkbmtehzokQjSJ3PbXGXi6HIJWfDZcCfeaw4ca4TGgev7WhDWPBR2jbXNwyFH1G kKytGKzNLf4DOH6IT8UO45U= 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 }