16488880 net-snmp build fails due to sys/procfs.h
authorGowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Wed, 27 Apr 2016 22:46:14 -0700
changeset 5868 2115ad091ad8
parent 5867 445e2cf1c845
child 5869 d4a72a69caa0
16488880 net-snmp build fails due to sys/procfs.h
components/net-snmp-57/patches/062.16488880.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp-57/patches/062.16488880.patch	Wed Apr 27 22:46:14 2016 -0700
@@ -0,0 +1,16 @@
+# Developed in-house. Solaris-specific; bug submitted upstream
+# https://sourceforge.net/p/net-snmp/bugs/2586/
+# Need to use procfs.h instead of sys/proc.h. Otherwise it will cause build failures
+--- 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
[email protected]@ -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>