Module Name: src
Committed By: kamil
Date: Thu Jun 15 23:44:58 UTC 2017
Modified Files:
src/external/bsd/libproc/dist: proc_sym.c
Log Message:
Don't include <sys/user.h> on NetBSD in libproc
This header in this context is freebsdism.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/libproc/dist/proc_sym.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/libproc/dist/proc_sym.c
diff -u src/external/bsd/libproc/dist/proc_sym.c:1.3 src/external/bsd/libproc/dist/proc_sym.c:1.4
--- src/external/bsd/libproc/dist/proc_sym.c:1.3 Tue Apr 26 14:28:39 2016
+++ src/external/bsd/libproc/dist/proc_sym.c Thu Jun 15 23:44:58 2017
@@ -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 @@ __RCSID("$NetBSD: proc_sym.c,v 1.3 2016/
#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>