From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90763 invoked by alias); 3 Apr 2016 12:31:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 90754 invoked by uid 89); 3 Apr 2016 12:31:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*uweigand, 22,7 X-HELO: xyzzy.0x04.net Received: from xyzzy.0x04.net (HELO xyzzy.0x04.net) (159.100.250.38) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Apr 2016 12:31:20 +0000 Received: from hogfather.0x04.net (89-65-66-135.dynamic.chello.pl [89.65.66.135]) by xyzzy.0x04.net (Postfix) with ESMTPS id 1B89A1AA57; Sun, 3 Apr 2016 12:31:17 +0000 (UTC) Received: by hogfather.0x04.net (Postfix, from userid 1000) id 00255580115; Sun, 3 Apr 2016 14:31:16 +0200 (CEST) From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= To: uweigand@de.ibm.com Cc: gdb-patches@sourceware.org, =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Subject: [PATCH] IPA: Fix build problem on !HAVE_GETAUXVAL Date: Sun, 03 Apr 2016 12:31:00 -0000 Message-Id: <1459686675-1125-1-git-send-email-koriakin@0x04.net> In-Reply-To: <20160401144346.44B5DCA06@oc7340732750.ibm.com> References: <20160401144346.44B5DCA06@oc7340732750.ibm.com> X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00018.txt.bz2 These files need AT_PHDR, which is defined in elf.h. If HAVE_GETAUXVAL is set, it's implicitely included by sys/auxv.h. Include it manually for the opposite case. gdb/gdbserver/ChangeLog: * linux-aarch64-ipa.c: Add include. * linux-ppc-ipa.c: Add include. * linux-s390-ipa.c: Add include. --- Here's a fix. Does that sound right? gdb/gdbserver/linux-aarch64-ipa.c | 1 + gdb/gdbserver/linux-ppc-ipa.c | 1 + gdb/gdbserver/linux-s390-ipa.c | 1 + 3 files changed, 3 insertions(+) diff --git a/gdb/gdbserver/linux-aarch64-ipa.c b/gdb/gdbserver/linux-aarch64-ipa.c index 50caeae..601d61c 100644 --- a/gdb/gdbserver/linux-aarch64-ipa.c +++ b/gdb/gdbserver/linux-aarch64-ipa.c @@ -21,6 +21,7 @@ #include "server.h" #include #include "tracepoint.h" +#include #ifdef HAVE_GETAUXVAL #include #endif diff --git a/gdb/gdbserver/linux-ppc-ipa.c b/gdb/gdbserver/linux-ppc-ipa.c index 8489c6e..d8f118e 100644 --- a/gdb/gdbserver/linux-ppc-ipa.c +++ b/gdb/gdbserver/linux-ppc-ipa.c @@ -22,6 +22,7 @@ #include #include "tracepoint.h" #include "linux-ppc-tdesc.h" +#include #ifdef HAVE_GETAUXVAL #include #endif diff --git a/gdb/gdbserver/linux-s390-ipa.c b/gdb/gdbserver/linux-s390-ipa.c index a9f86ad..cdf2fe7 100644 --- a/gdb/gdbserver/linux-s390-ipa.c +++ b/gdb/gdbserver/linux-s390-ipa.c @@ -22,6 +22,7 @@ #include #include "tracepoint.h" #include "linux-s390-tdesc.h" +#include #ifdef HAVE_GETAUXVAL #include #endif -- 2.8.0