# HG changeset patch # User Lijo George # Date 1421442294 21600 # Node ID 5e7228d629ab2da2100a847751e9d5c0b0131d42 # Parent ebe894a8833efc554fcfdf8683019a222513ae02 20191950 net-snmp needs to update dladm_open function call. diff -r ebe894a8833e -r 5e7228d629ab 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 +@@ -62,6 +62,7 @@ + + #include + #include ++#include + /*- + * Includes of local application header files + */ +@@ -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);