Define _KMEMUSER before including BSD kernel headers.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 5 Sep 2017 02:34:48 +0000 (19:34 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 5 Sep 2017 02:34:48 +0000 (19:34 -0700)
commitc49fbc6c79e0c479371e0ba7be0c8d1137016864
treeec4401adc6aedbd9569ac29a0a7cb82e98e627b6
parent26562e73d8eb20c9b8289911cee557de8e5272c3
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.
gdb/ChangeLog
gdb/bsd-kvm.c
gdb/configure
gdb/configure.ac