diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/bsd-kvm.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d86e47..ed89fbc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2017-09-04 John Baldwin <jhb@FreeBSD.org> + * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + * bsd-kvm.o: Define _KMEMUSER. * configure.ac: Define _KMEMUSER when checking for "struct lwp". * configure: Regenerate. diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 8c21394..04e5622 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -37,7 +37,9 @@ #include "readline/readline.h" #include <sys/param.h> #include <sys/proc.h> +#ifdef HAVE_SYS_USER_H #include <sys/user.h> +#endif #include "bsd-kvm.h" |