components/net-snmp/patches/032.16488880.patch
author Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Wed, 22 Jan 2014 01:46:00 -0800
changeset 1651 0e3a608a1823
permissions -rw-r--r--
16488880 net-snmp build fails due to sys/procfs.h
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1651
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     1
--- net-snmp/agent/mibgroup/host/data_access/swrun_procfs_psinfo.c	Tue Mar 19 22:20:09 2013
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     2
+++ net-snmp/agent/mibgroup/host/data_access/swrun_procfs_psinfo.c	Tue Mar 19 22:21:09 2013
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     3
@@ -25,9 +25,7 @@
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     4
 
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     5
 #define HAVE_SYS_PROCFS_H    /* XXX - Needs a configure check! */
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     6
 #ifdef HAVE_SYS_PROCFS_H
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     7
-#define _KERNEL              /* For psinfo_t */
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     8
-#include <sys/procfs.h>
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
     9
-#undef _KERNEL
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
    10
+#include <procfs.h>
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
    11
 #endif
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
    12
 #ifdef HAVE_SYS_PROC_H
0e3a608a1823 16488880 net-snmp build fails due to sys/procfs.h
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
diff changeset
    13
 #include <sys/proc.h>