aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/config.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-09-29 03:57:34 +0000
committerMike Frysinger <vapier@gentoo.org>2013-09-29 03:57:34 +0000
commit5b4e221c82f3010f2004c6cba145c188c9ebfe6c (patch)
tree64a271a595a4fe253a506c56462fc69fb690a9eb /gdb/gdbserver/config.in
parent9a5624cea1b4bd1a9f8d7e5bc4c26918fc2de50c (diff)
downloadgdb-5b4e221c82f3010f2004c6cba145c188c9ebfe6c.zip
gdb-5b4e221c82f3010f2004c6cba145c188c9ebfe6c.tar.gz
gdb-5b4e221c82f3010f2004c6cba145c188c9ebfe6c.tar.bz2
gdb: btrace: fix build errors on older glibc builds
It is possible to have a build of glibc where SYS_perf_event_open is not defined (because when the glibc was compiled, the syscall did not exist), but have newer kernel headers installed so that linux/perf_event.h is available. In this setup, you get a build failure: ./common/linux-btrace.c: In function 'kernel_supports_btrace': ./common/linux-btrace.c:316:23: error: 'SYS_perf_event_open' undeclared (first use in this function) Update the ifdef check to also see if the syscall is available. URL: https://bugs.gentoo.org/473522 Reported-by: William Throwe <wtt6@cornell.edu> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gdb/gdbserver/config.in')
-rw-r--r--gdb/gdbserver/config.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in
index 7f23a31..9398413 100644
--- a/gdb/gdbserver/config.in
+++ b/gdb/gdbserver/config.in
@@ -199,6 +199,9 @@
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
+/* Define to 1 if you have the <sys/syscall.h> header file. */
+#undef HAVE_SYS_SYSCALL_H
+
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H