16488880 net-snmp build fails due to sys/procfs.h
authorGowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Wed, 22 Jan 2014 01:46:00 -0800
changeset 1651 0e3a608a1823
parent 1650 ce501c11d5fa
child 1652 eedad834c07d
16488880 net-snmp build fails due to sys/procfs.h
components/net-snmp/patches/032.16488880.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/032.16488880.patch	Wed Jan 22 01:46:00 2014 -0800
@@ -0,0 +1,13 @@
+--- net-snmp/agent/mibgroup/host/data_access/swrun_procfs_psinfo.c	Tue Mar 19 22:20:09 2013
++++ net-snmp/agent/mibgroup/host/data_access/swrun_procfs_psinfo.c	Tue Mar 19 22:21:09 2013
+@@ -25,9 +25,7 @@
+ 
+ #define HAVE_SYS_PROCFS_H    /* XXX - Needs a configure check! */
+ #ifdef HAVE_SYS_PROCFS_H
+-#define _KERNEL              /* For psinfo_t */
+-#include <sys/procfs.h>
+-#undef _KERNEL
++#include <procfs.h>
+ #endif
+ #ifdef HAVE_SYS_PROC_H
+ #include <sys/proc.h>