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.
This commit is contained in:
John Baldwin 2017-09-04 19:34:48 -07:00
parent c49fbc6c79
commit f7efc967ba
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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"