Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 20db51d70e6b59a061db97ce9b89c771 > files > 83

net-snmp-5.3.2.2-14.el5.src.rpm

591416: Recompilation produces errors

commit 44a05e7079e7d0d823489af87b0fcc2fa02d69d7
Author: jsafranek <jsafranek@06827809-a52a-0410-b366-d66718629ded>
Date:   Wed Feb 18 14:41:29 2009 +0000

    Configure script does not like net-snmp-config.h being included from header
    files, which are added by --with-mib-modules=, let's remove it from there.
    
    git-svn-id: https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk@17390 06827809-a52a-0410-b366-d66718629ded

diff --git a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.c b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.c
index 0deb942..54bc468 100644
--- a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.c
+++ b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.c
@@ -1,3 +1,7 @@
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
 #include "sctpTables_common.h"
 #include "sctpAssocTable.h"
 #include "sctpAssocRemAddrTable.h"
diff --git a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.h b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.h
index e0595c5..eb7f990 100644
--- a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.h
+++ b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_common.h
@@ -1,10 +1,6 @@
 #ifndef SCTP_TABLES_COMMON_H
 #define SCTP_TABLES_COMMON_H
 
-#include <net-snmp/net-snmp-config.h>
-#include <net-snmp/net-snmp-includes.h>
-#include <net-snmp/agent/net-snmp-agent-includes.h>
-
 #define SCTP_IPADDRESS_SIZE 16
 #define SCTP_HOSTNAME_SIZE 255
 
diff --git a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_linux.c b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_linux.c
index 3606b2f..d6fd810 100644
--- a/net-snmp/agent/mibgroup/sctp-mib/sctpTables_linux.c
+++ b/net-snmp/agent/mibgroup/sctp-mib/sctpTables_linux.c
@@ -1,3 +1,7 @@
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
 #include "sctpAssocTable.h"
 #include "sctpAssocLocalAddrTable.h"
 #include "sctpAssocRemAddrTable.h"