From f7efc967ba45350b688e0f661a31eecc15d5e052 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 4 Sep 2017 19:34:48 -0700 Subject: [PATCH] Make include in bsd-kvm.c conditional on HAVE_SYS_USER_H. NetBSD has recently removed . gdb/ChangeLog: * bsd-kvm.c: Make conditional on HAVE_SYS_USER_H. --- gdb/ChangeLog | 4 ++++ gdb/bsd-kvm.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d86e4705e0..ed89fbc20fd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-09-04 John Baldwin + + * bsd-kvm.o: Make conditional on HAVE_SYS_USER_H. + 2017-09-04 John Baldwin * bsd-kvm.o: Define _KMEMUSER. diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 8c2139462dc..04e5622db8f 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -37,7 +37,9 @@ #include "readline/readline.h" #include #include +#ifdef HAVE_SYS_USER_H #include +#endif #include "bsd-kvm.h" -- 2.30.2