aboutsummaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
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
commitf7efc967ba45350b688e0f661a31eecc15d5e052 (patch)
tree61874f65507649704423a4ca875e7d43555c968b /gdb/bsd-kvm.c
parentc49fbc6c79e0c479371e0ba7be0c8d1137016864 (diff)
downloadgdb-f7efc967ba45350b688e0f661a31eecc15d5e052.zip
gdb-f7efc967ba45350b688e0f661a31eecc15d5e052.tar.gz
gdb-f7efc967ba45350b688e0f661a31eecc15d5e052.tar.bz2
Make <sys/user.h> include in bsd-kvm.c conditional on HAVE_SYS_USER_H.
NetBSD has recently removed <sys/user.h>. gdb/ChangeLog: * bsd-kvm.c: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c2
1 files changed, 2 insertions, 0 deletions
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"