summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch')
-rw-r--r--net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch b/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch
new file mode 100644
index 000000000000..da4f6007ebb3
--- /dev/null
+++ b/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch
@@ -0,0 +1,42 @@
+Index: tests/loopget.cpp
+===================================================================
+RCS file: /cvsroot/atmosphere/libksnmp/tests/loopget.cpp,v
+retrieving revision 1.3
+diff -u -B -r1.3 loopget.cpp
+--- tests/loopget.cpp 18 Feb 2005 12:49:16 -0000 1.3
++++ tests/loopget.cpp 6 Feb 2006 00:02:18 -0000
+@@ -96,8 +96,8 @@
+ goto endofmain;
+ }
+
+- const int loop = atoi( args->arg(2) );
+- const int delay = atoi( args->arg(3) ) * 1000;
++ static const int loop = atoi( args->arg(2) );
++ static const int delay = atoi( args->arg(3) ) * 1000;
+
+ for(int i = 0; i < loop; i++)
+ {
+Index: tests/name2index.cpp
+===================================================================
+RCS file: /cvsroot/atmosphere/libksnmp/tests/name2index.cpp,v
+retrieving revision 1.1
+diff -u -B -r1.1 name2index.cpp
+--- tests/name2index.cpp 18 Feb 2005 12:28:45 -0000 1.1
++++ tests/name2index.cpp 6 Feb 2006 00:02:18 -0000
+@@ -67,6 +67,7 @@
+ int ret = 0;
+
+ KSNMP::Session *session = NULL;
++ KSNMP::Device1213 *dev = NULL;
+ if ( args->getOption("V") == "1" )
+ session = new KSNMP::Session1("", args->getOption("c"));
+ else if ( args->getOption("V") == "2c" )
+@@ -93,7 +94,7 @@
+ goto endofmain;
+ }
+
+- KSNMP::Device1213 *dev = new KSNMP::Device1213(session);
++ dev = new KSNMP::Device1213(session);
+
+ std::cout << "ifIndex: " << dev->getIfIndex(args->arg(1), false) << std::endl;
+