components/net-snmp-57/patches/062.16488880.patch
author Jesse Butler <jesse.butler@oracle.com>
Tue, 18 Oct 2016 05:50:50 -0700
changeset 7121 02252aa4d56c
parent 5868 2115ad091ad8
permissions -rw-r--r--
24335926 HOME should be set by default in a solaris container

# 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
@@ -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>