Make <sys/user.h> include in bsd-kvm.c conditional on HAVE_SYS_USER_H.
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)
NetBSD has recently removed <sys/user.h>.

gdb/ChangeLog:

* bsd-kvm.c: Make <sys/user.h> conditional on HAVE_SYS_USER_H.

gdb/ChangeLog
gdb/bsd-kvm.c

index 0d86e4705e01656e8a2ee5956e423162b8e5095d..ed89fbc20fd1b6c5fc1996c23fbea1aa82843523 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 8c2139462dc51d8426019e9600cb4e3a2e79af84..04e5622db8f83b3100ed6181c59b989146648037 100644 (file)
@@ -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"