aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-s390-ipa.c
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2016-04-03 14:25:25 +0200
committerMarcin Koƛcielnicki <koriakin@0x04.net>2016-04-03 18:27:50 +0200
commitd0a9981f372e636508b9a235017f2aba565e435d (patch)
tree32e02ee837fe1414550cdadaba57e230984c3682 /gdb/gdbserver/linux-s390-ipa.c
parent4b0046f325db3547fef1752020930d5f5df9801a (diff)
downloadgdb-d0a9981f372e636508b9a235017f2aba565e435d.zip
gdb-d0a9981f372e636508b9a235017f2aba565e435d.tar.gz
gdb-d0a9981f372e636508b9a235017f2aba565e435d.tar.bz2
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 <elf.h> include. * linux-ppc-ipa.c: Add <elf.h> include. * linux-s390-ipa.c: Add <elf.h> include.
Diffstat (limited to 'gdb/gdbserver/linux-s390-ipa.c')
-rw-r--r--gdb/gdbserver/linux-s390-ipa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-s390-ipa.c b/gdb/gdbserver/linux-s390-ipa.c
index a9f86ad..cdf2fe72 100644
--- a/gdb/gdbserver/linux-s390-ipa.c
+++ b/gdb/gdbserver/linux-s390-ipa.c
@@ -22,6 +22,7 @@
#include <sys/mman.h>
#include "tracepoint.h"
#include "linux-s390-tdesc.h"
+#include <elf.h>
#ifdef HAVE_GETAUXVAL
#include <sys/auxv.h>
#endif