diff options
author | otis <otis@pkgsrc.org> | 2019-08-21 09:30:12 +0000 |
---|---|---|
committer | otis <otis@pkgsrc.org> | 2019-08-21 09:30:12 +0000 |
commit | 17d09688e169e18575961aa8bf918c8b7d74c216 (patch) | |
tree | d4215a83cb6571992895d127a4edffc20bee312e | |
parent | b5b4af9cdccecfa79e0bbab52ca0c60f91c3f1fa (diff) | |
download | pkgsrc-17d09688e169e18575961aa8bf918c8b7d74c216.tar.gz |
net-snmp: Fix compilation on Solaris 11 and SmartOS.
-rw-r--r-- | net/net-snmp/distinfo | 4 | ||||
-rw-r--r-- | net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c | 19 |
2 files changed, 10 insertions, 13 deletions
diff --git a/net/net-snmp/distinfo b/net/net-snmp/distinfo index 82098594805..2d8112b3321 100644 --- a/net/net-snmp/distinfo +++ b/net/net-snmp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.94 2019/06/30 21:43:25 kamil Exp $ +$NetBSD: distinfo,v 1.95 2019/08/21 09:30:12 otis Exp $ SHA1 (net-snmp-5.7.3.tar.gz) = 97dc25077257680815de44e34128d365c76bd839 RMD160 (net-snmp-5.7.3.tar.gz) = c5cf54d5723ee417e07f1f9fa3936aef505104a2 @@ -14,7 +14,7 @@ SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = d36d2490448c2dfda0383c6 SHA1 (patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c) = cee9722d9a3f956726a8760b900ed3a375afde3f SHA1 (patch-agent_mibgroup_hardware_memory_memory__netbsd.c) = 928a5aa99e7893ee91dea3110db8098212e328fa SHA1 (patch-agent_mibgroup_host_data__access_swrun__kinfo.c) = 39888f6489b89bd6598c453977b29519b2f7968f -SHA1 (patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c) = 5ccec9cc26982e05607c3066e1f50763c99e7b4f +SHA1 (patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c) = f2faca89cf4a53ba5d2bd6ba47730f3dbf242789 SHA1 (patch-agent_mibgroup_ip-mib_data__access_arp__sysctl.c) = cad87b474cdd469c7ba762ed8a47202c3c6f9240 SHA1 (patch-agent_mibgroup_kernel__sunos5.c) = 3e345f92f42a47959716b0176096c6b0d91aa65a SHA1 (patch-agent_mibgroup_kernel__sunos5.h) = eb80eb5e55020014b1e5524fd572839aefdce5a5 diff --git a/net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c b/net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c index c4ecc1dae0c..dea09ca3e30 100644 --- a/net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c +++ b/net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c @@ -1,18 +1,15 @@ -$NetBSD: patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c,v 1.1 2017/02/09 09:33:57 maya Exp $ +$NetBSD: patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c,v 1.2 2019/08/21 09:30:12 otis Exp $ -Fix compilation on Solaris 11.2, from upstream commit: -https://sourceforge.net/p/net-snmp/code/ci/e2ce8bb37819c9ae24d482ac4108772f7b2c9b8c/ +Fix compilation on Solaris 11 and also on SmartOS. --- agent/mibgroup/host/data_access/swrun_procfs_psinfo.c.orig 2014-12-08 20:23:22.000000000 +0000 +++ agent/mibgroup/host/data_access/swrun_procfs_psinfo.c -@@ -33,6 +33,10 @@ - #include <sys/proc.h> +@@ -23,6 +23,8 @@ + #include <fcntl.h> #endif -+#include <sys/processor.h> -+#include <sys/procset.h> -+#include <thread.h> ++#include <sys/thread.h> + - #include <net-snmp/net-snmp-includes.h> - #include <net-snmp/agent/net-snmp-agent-includes.h> - #include <net-snmp/library/container.h> + #define HAVE_SYS_PROCFS_H /* XXX - Needs a configure check! */ + #ifdef HAVE_SYS_PROCFS_H + #define _KERNEL /* For psinfo_t */ |