20191950 net-snmp needs to update dladm_open function call.
authorLijo George<lijo.x.george@oracle.com>
Fri, 16 Jan 2015 15:04:54 -0600
changeset 3641 5e7228d629ab
parent 3640 ebe894a8833e
child 3642 41b777a03942
20191950 net-snmp needs to update dladm_open function call.
components/net-snmp/patches/053.20191950.dladm_proto_change.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/053.20191950.dladm_proto_change.patch	Fri Jan 16 15:04:54 2015 -0600
@@ -0,0 +1,27 @@
+This patch is a solaris specific one which fixes a build issue 
+related to change in the prototype of a dladm function. This has 
+not been submitted to the community.
+--- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2015-01-08 06:55:57.165428600 -0600
++++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2015-01-08 06:50:09.992840500 -0600
[email protected]@ -62,6 +62,7 @@
+ 
+ #include <libdladm.h>
+ #include <libdllink.h>
++#include <libnetcfg.h>
+ /*-
+  * Includes of local application header files 
+  */
[email protected]@ -1733,7 +1734,12 @@
+         dladm_phys_attr_t dpa;
+         dladm_handle_t handle;
+ 
+-        if (dladm_open(&handle, NULL) != DLADM_STATUS_OK) {
++#ifdef NETADM_ACTIVE_PROFILE
++        if (dladm_open(&handle, NULL)
++#else
++        if (dladm_open(&handle)
++#endif
++            != DLADM_STATUS_OK) {
+             DEBUGMSGTL(("kernel_sunos5","dladm_open failed "
+                        "with errno=%d\n",errno));
+             return (-1);