NetBSD has recently removed <sys/user.h>.
gdb/ChangeLog:
* bsd-kvm.c: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
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.
#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"