16488880 net-snmp build fails due to sys/procfs.h
authorgowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
Tue, 14 May 2013 22:57:32 -0700
changeset 1302 4838d241e95c
parent 1301 636f7c363f41
child 1303 79b691ffbda3
16488880 net-snmp build fails due to sys/procfs.h
components/net-snmp/patches/031.16488880.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/031.16488880.patch	Tue May 14 22:57:32 2013 -0700
@@ -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>