From: John Baldwin Date: Tue, 5 Sep 2017 02:34:48 +0000 (-0700) Subject: Make include in bsd-kvm.c conditional on HAVE_SYS_USER_H. X-Git-Tag: users/ARM/embedded-binutils-master-2017q4~1177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7efc967ba45350b688e0f661a31eecc15d5e052;p=platform%2Fupstream%2Fbinutils.git 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. --- 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 + * bsd-kvm.o: Make conditional on HAVE_SYS_USER_H. + +2017-09-04 John Baldwin + * 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 #include +#ifdef HAVE_SYS_USER_H #include +#endif #include "bsd-kvm.h"