From: Marcin Kościelnicki Date: Sun, 3 Apr 2016 12:25:25 +0000 (+0200) Subject: IPA: Fix build problem on !HAVE_GETAUXVAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0a9981f372e636508b9a235017f2aba565e435d;p=binutils-gdb.git IPA: Fix build problem on !HAVE_GETAUXVAL 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 39a1be03359..7b20fdb8f44 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2016-04-03 Marcin Kościelnicki + + * linux-aarch64-ipa.c: Add include. + * linux-ppc-ipa.c: Add include. + * linux-s390-ipa.c: Add include. + 2016-03-31 Marcin Kościelnicki * tracepoint.c (gdb_collect_ptr): Remove const qualifier. diff --git a/gdb/gdbserver/linux-aarch64-ipa.c b/gdb/gdbserver/linux-aarch64-ipa.c index 50caeae4f3f..601d61c9699 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 8489c6e2abb..d8f118eb7fb 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 a9f86ad4441..cdf2fe72f43 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