From d0a9981f372e636508b9a235017f2aba565e435d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Date: Sun, 3 Apr 2016 14:25:25 +0200 Subject: [PATCH] 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. --- gdb/gdbserver/ChangeLog | 6 ++++++ gdb/gdbserver/linux-aarch64-ipa.c | 1 + gdb/gdbserver/linux-ppc-ipa.c | 1 + gdb/gdbserver/linux-s390-ipa.c | 1 + 4 files changed, 9 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 39a1be0335..7b20fdb8f4 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 50caeae4f3..601d61c969 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 8489c6e2ab..d8f118eb7f 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 a9f86ad444..cdf2fe72f4 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