equal
deleted
inserted
replaced
|
1 This patch is a solaris specific one which fixes a build issue |
|
2 related to change in the prototype of a dladm function. This has |
|
3 not been submitted to the community. |
|
4 --- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c 2015-01-08 06:55:57.165428600 -0600 |
|
5 +++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c 2015-01-08 06:50:09.992840500 -0600 |
|
6 @@ -62,6 +62,7 @@ |
|
7 |
|
8 #include <libdladm.h> |
|
9 #include <libdllink.h> |
|
10 +#include <libnetcfg.h> |
|
11 /*- |
|
12 * Includes of local application header files |
|
13 */ |
|
14 @@ -1733,7 +1734,12 @@ |
|
15 dladm_phys_attr_t dpa; |
|
16 dladm_handle_t handle; |
|
17 |
|
18 - if (dladm_open(&handle, NULL) != DLADM_STATUS_OK) { |
|
19 +#ifdef NETADM_ACTIVE_PROFILE |
|
20 + if (dladm_open(&handle, NULL) |
|
21 +#else |
|
22 + if (dladm_open(&handle) |
|
23 +#endif |
|
24 + != DLADM_STATUS_OK) { |
|
25 DEBUGMSGTL(("kernel_sunos5","dladm_open failed " |
|
26 "with errno=%d\n",errno)); |
|
27 return (-1); |