summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/agent/mibgroup
diff options
context:
space:
mode:
authorWentao Hu2012-12-04 10:48:17 +0800
committerWentao Hu2012-12-12 09:32:26 +0800
commit881d44e720bbe0befa357a48f1f7e741142a5812 (patch)
treeacd6493cb2d9a535a83d44fdc8e33bb69c1bce2a /cleopatre/application/spidnetsnmp/agent/mibgroup
parentea6c1b08cb4480d468c4021ed8b10b01559cf1bb (diff)
cleo/app/snmp[eoc-drv]: include the needed header files by the right way, refs #3549
The libgen.h is included for basename(), and string.h with the macro of _GNU_SOURCE for strcasestr();
Diffstat (limited to 'cleopatre/application/spidnetsnmp/agent/mibgroup')
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocBroadcastStormProtectionGroup/eocBroadcastStormProtectionTable/eocBroadcastStormProtectionTable_data_access.c2
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocSoftwareUpgradeGroup/eocSoftwareUpgradeTable/eocSoftwareUpgradeTable.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocBroadcastStormProtectionGroup/eocBroadcastStormProtectionTable/eocBroadcastStormProtectionTable_data_access.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocBroadcastStormProtectionGroup/eocBroadcastStormProtectionTable/eocBroadcastStormProtectionTable_data_access.c
index c425365677..92c547c201 100644
--- a/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocBroadcastStormProtectionGroup/eocBroadcastStormProtectionTable/eocBroadcastStormProtectionTable_data_access.c
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocBroadcastStormProtectionGroup/eocBroadcastStormProtectionTable/eocBroadcastStormProtectionTable_data_access.c
@@ -5,9 +5,11 @@
* $Id:$
*/
/* standard Net-SNMP includes */
+#define _GNU_SOURCE
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
+#include <string.h>
/* include our parent header */
#include "eocBroadcastStormProtectionTable.h"
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocSoftwareUpgradeGroup/eocSoftwareUpgradeTable/eocSoftwareUpgradeTable.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocSoftwareUpgradeGroup/eocSoftwareUpgradeTable/eocSoftwareUpgradeTable.h
index 8438a16612..782f8f2cc7 100644
--- a/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocSoftwareUpgradeGroup/eocSoftwareUpgradeTable/eocSoftwareUpgradeTable.h
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocSoftwareUpgradeGroup/eocSoftwareUpgradeTable/eocSoftwareUpgradeTable.h
@@ -16,6 +16,7 @@ extern "C" {
*
* @{
*/
+#include <libgen.h>
#include <net-snmp/library/asn1.h>