aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-09-04 19:34:48 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2017-09-04 19:34:48 -0700
commitc49fbc6c79e0c479371e0ba7be0c8d1137016864 (patch)
treeec4401adc6aedbd9569ac29a0a7cb82e98e627b6 /gdb/configure.ac
parent26562e73d8eb20c9b8289911cee557de8e5272c3 (diff)
downloadgdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.zip
gdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.tar.gz
gdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.tar.bz2
Define _KMEMUSER before including BSD kernel headers.
Recent versions of NetBSD hide certain kernel structures needed by the KVM target from userland unless this macro is defined. gdb/ChangeLog: * bsd-kvm.o: Define _KMEMUSER. * configure.ac: Define _KMEMUSER when checking for "struct lwp". * configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 10d2d10..b4d7a87 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1434,6 +1434,7 @@ AC_CHECK_MEMBERS([struct thread.td_pcb], [], [],
# See if <sys/lwp.h> defines `struct lwp`.
AC_CACHE_CHECK([for struct lwp], gdb_cv_struct_lwp,
[AC_TRY_COMPILE([#include <sys/param.h>
+#define _KMEMUSER
#include <sys/lwp.h>], [struct lwp l;],
gdb_cv_struct_lwp=yes, gdb_cv_struct_lwp=no)])
if test $gdb_cv_struct_lwp = yes; then