projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c49fbc6
)
Make <sys/user.h> include in bsd-kvm.c conditional on HAVE_SYS_USER_H.
author
John Baldwin
<jhb@FreeBSD.org>
Tue, 5 Sep 2017 02:34:48 +0000
(19:34 -0700)
committer
John 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
patch
|
blob
|
history
gdb/bsd-kvm.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 0d86e4705e01656e8a2ee5956e423162b8e5095d..ed89fbc20fd1b6c5fc1996c23fbea1aa82843523 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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.
diff --git
a/gdb/bsd-kvm.c
b/gdb/bsd-kvm.c
index 8c2139462dc51d8426019e9600cb4e3a2e79af84..04e5622db8f83b3100ed6181c59b989146648037 100644
(file)
--- 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"