Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libproc/dist Don't include <sys/user.h> on NetB...



details:   https://anonhg.NetBSD.org/src/rev/69010b7100cc
branches:  trunk
changeset: 354421:69010b7100cc
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 15 23:44:58 2017 +0000

description:
Don't include <sys/user.h> on NetBSD in libproc

This header in this context is freebsdism.

diffstat:

 external/bsd/libproc/dist/proc_sym.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9b2098ffd6d8 -r 69010b7100cc external/bsd/libproc/dist/proc_sym.c
--- a/external/bsd/libproc/dist/proc_sym.c      Thu Jun 15 23:08:46 2017 +0000
+++ b/external/bsd/libproc/dist/proc_sym.c      Thu Jun 15 23:44:58 2017 +0000
@@ -32,7 +32,7 @@
 #ifdef __FBSDID
 __FBSDID("$FreeBSD: head/lib/libproc/proc_sym.c 279946 2015-03-13 04:26:48Z stas $");
 #else
-__RCSID("$NetBSD: proc_sym.c,v 1.3 2016/04/26 14:28:39 chs Exp $");
+__RCSID("$NetBSD: proc_sym.c,v 1.4 2017/06/15 23:44:58 kamil Exp $");
 #endif
 
 #include <sys/types.h>
@@ -40,7 +40,9 @@
 #include <sys/ctf.h>
 #include <sys/ctf_api.h>
 #endif
+#if defined(__FreeBSD__)
 #include <sys/user.h>
+#endif
 #include <sys/sysctl.h>
 
 #include <assert.h>



Home | Main Index | Thread Index | Old Index