aboutsummaryrefslogtreecommitdiff
path: root/net/netmap/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-01-19 09:28:21 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-01-19 09:28:21 +0000
commit177df99bd7b7ba397069cafa7191a43c0df4c159 (patch)
treef7507675e918e36c1c75e3fa13c10efba1be88f3 /net/netmap/files
parent15bafe26e93fe1cffbf3929209d8db99a4737deb (diff)
Notes
Diffstat (limited to 'net/netmap/files')
-rw-r--r--net/netmap/files/patch-belgolib::files.c15
-rw-r--r--net/netmap/files/patch-makelist__args.c29
-rw-r--r--net/netmap/files/patch-netmap::Makefile9
-rw-r--r--net/netmap/files/patch-netmap::lookup.c4
-rw-r--r--net/netmap/files/patch-netmap::misc.c17
-rw-r--r--net/netmap/files/patch-netmap__args.c26
-rw-r--r--net/netmap/files/patch-netmap__drawmap.c7
-rw-r--r--net/netmap/files/patch-netmap__hostclass.c7
-rw-r--r--net/netmap/files/patch-netmap__hostclass.h15
-rw-r--r--net/netmap/files/patch-netmap__lookup.h15
-rw-r--r--net/netmap/files/patch-netmap__misc.h10
-rw-r--r--net/netmap/files/patch-netmap__netmap.c26
12 files changed, 174 insertions, 6 deletions
diff --git a/net/netmap/files/patch-belgolib::files.c b/net/netmap/files/patch-belgolib::files.c
index 30c2737ad31b..39854e8c92ca 100644
--- a/net/netmap/files/patch-belgolib::files.c
+++ b/net/netmap/files/patch-belgolib::files.c
@@ -1,14 +1,16 @@
--- belgolib/files.c.orig 2010-01-06 08:00:52.000000000 +0900
+++ belgolib/files.c 2011-11-23 22:22:36.000000000 +0900
-@@ -17,7 +17,7 @@
+@@ -17,8 +17,8 @@
Infile::Infile() : ifstream() { }
-Infile::Infile(const string& file_name, int mode, bool fatal)
+- : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
+Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
- : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
++ : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
{
+ if(cdb>d_list)
@@ -39,7 +39,7 @@
}
@@ -18,3 +20,12 @@
{
if(cdb>d_list)
+@@ -49,7 +49,7 @@
+ //file is open, close it first
+ close();
+
+- open(file_name.c_str(), (std::_Ios_Openmode)mode);
++ open(file_name.c_str(), (std::ios_base::openmode)mode);
+
+ if(int error_nr = check_open()) {
+ if(cdb>d_list)
diff --git a/net/netmap/files/patch-makelist__args.c b/net/netmap/files/patch-makelist__args.c
new file mode 100644
index 000000000000..47cc5f5e4e13
--- /dev/null
+++ b/net/netmap/files/patch-makelist__args.c
@@ -0,0 +1,29 @@
+--- makelist/args.c.orig
++++ makelist/args.c
+@@ -1,6 +1,6 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+-#include <stdlib.h>
++#include <cstdlib>
+
+ using namespace std;
+
+@@ -35,7 +35,7 @@
+ exit(-1);
+ }
+
+-static void set_string_arg(strstream& ss, string& val)
++static void set_string_arg(stringstream& ss, string& val)
+ {
+ string argvalue;
+ ss >> argvalue;
+@@ -62,7 +62,7 @@
+
+ static void process(const string& argline)
+ {
+- strstream ss;
++ stringstream ss;
+ ss << argline;
+
+ string arg;
diff --git a/net/netmap/files/patch-netmap::Makefile b/net/netmap/files/patch-netmap::Makefile
index c966683084d2..9daad6f88c5e 100644
--- a/net/netmap/files/patch-netmap::Makefile
+++ b/net/netmap/files/patch-netmap::Makefile
@@ -10,7 +10,14 @@
CPPFLAGS = -I../belgolib
-@@ -34,7 +33,7 @@
+@@ -28,13 +27,13 @@
+
+ test: $(OFILES)
+ $(CC) -o $(OEXE) $(OFILES) $(LDFLAGS)
+- strip $(OEXE)
++# strip $(OEXE)
+
+ clean:
-/bin/rm -f $(OFILES) $(OEXE)
depend:
diff --git a/net/netmap/files/patch-netmap::lookup.c b/net/netmap/files/patch-netmap::lookup.c
index 5bfc31c556d0..65d873d62054 100644
--- a/net/netmap/files/patch-netmap::lookup.c
+++ b/net/netmap/files/patch-netmap::lookup.c
@@ -1,7 +1,7 @@
--- netmap/lookup.c.orig 2010-01-06 07:59:38.000000000 +0900
+++ netmap/lookup.c 2011-11-23 22:32:15.000000000 +0900
-@@ -1,6 +1,8 @@
- #include <strstream>
+@@ -1,6 +1,7 @@
+-#include <strstream>
#include <iostream>
+#include <sys/types.h>
diff --git a/net/netmap/files/patch-netmap::misc.c b/net/netmap/files/patch-netmap::misc.c
index 32f365a75d9f..cf34faf5ddd0 100644
--- a/net/netmap/files/patch-netmap::misc.c
+++ b/net/netmap/files/patch-netmap::misc.c
@@ -1,6 +1,21 @@
--- netmap/misc.c.orig Sun Dec 15 14:54:26 2002
+++ netmap/misc.c Sun Dec 15 14:54:26 2002
-@@ -54,7 +54,7 @@
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <string>
+
+ #include "misc.h"
+@@ -17,7 +17,7 @@
+
+ string int_to_str(int i)
+ {
+- strstream ost;
++ stringstream ost;
+
+ ost << i << char(0);
+
+@@ -55,7 +55,7 @@
return false;
bool had_point = false;
diff --git a/net/netmap/files/patch-netmap__args.c b/net/netmap/files/patch-netmap__args.c
new file mode 100644
index 000000000000..16dd33eb7e94
--- /dev/null
+++ b/net/netmap/files/patch-netmap__args.c
@@ -0,0 +1,26 @@
+--- netmap/args.c.orig
++++ netmap/args.c
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+ #include <string>
+
+@@ -47,7 +47,7 @@
+ exit(0);
+ }
+
+-static void set_string_arg(strstream& ss, string& val)
++static void set_string_arg(stringstream& ss, string& val)
+ {
+ string argvalue;
+ ss >> argvalue;
+@@ -60,7 +60,7 @@
+
+ static void process(const string& argline)
+ {
+- strstream ss;
++ stringstream ss;
+ ss << argline;
+
+ string arg;
diff --git a/net/netmap/files/patch-netmap__drawmap.c b/net/netmap/files/patch-netmap__drawmap.c
new file mode 100644
index 000000000000..62af25fd3b84
--- /dev/null
+++ b/net/netmap/files/patch-netmap__drawmap.c
@@ -0,0 +1,7 @@
+--- netmap/drawmap.c.orig
++++ netmap/drawmap.c
+@@ -1,4 +1,3 @@
+-#include <strstream>
+ #include <iostream>
+
+ #include <fstream>
diff --git a/net/netmap/files/patch-netmap__hostclass.c b/net/netmap/files/patch-netmap__hostclass.c
new file mode 100644
index 000000000000..f52a7e755100
--- /dev/null
+++ b/net/netmap/files/patch-netmap__hostclass.c
@@ -0,0 +1,7 @@
+--- netmap/hostclass.c.orig
++++ netmap/hostclass.c
+@@ -1,4 +1,3 @@
+-#include <strstream>
+ #include <map>
+
+ //from belgolib
diff --git a/net/netmap/files/patch-netmap__hostclass.h b/net/netmap/files/patch-netmap__hostclass.h
new file mode 100644
index 000000000000..724e780cba24
--- /dev/null
+++ b/net/netmap/files/patch-netmap__hostclass.h
@@ -0,0 +1,15 @@
+--- netmap/hostclass.h.orig
++++ netmap/hostclass.h
+@@ -48,10 +48,10 @@
+ HostClass* a;
+ HostClass* b;
+
+- bool operator==(HostLink& hl)
++ bool operator==(const HostLink& hl) const
+ { return a == hl.a && b == hl.b; }
+
+- bool operator <(HostLink& hl)
++ bool operator <(const HostLink& hl) const
+ { return a==hl.a ? b < hl.b : a < hl.a; }
+ };
+
diff --git a/net/netmap/files/patch-netmap__lookup.h b/net/netmap/files/patch-netmap__lookup.h
new file mode 100644
index 000000000000..5b087737f2d9
--- /dev/null
+++ b/net/netmap/files/patch-netmap__lookup.h
@@ -0,0 +1,15 @@
+--- netmap/lookup.h.orig
++++ netmap/lookup.h
+@@ -14,10 +14,10 @@
+ string ip;
+ string hostname;
+
+- bool operator==(const HostRec& hr)
++ bool operator==(const HostRec& hr) const
+ { return ip == hr.ip && hostname == hr.hostname; }
+
+- bool operator<(const HostRec& hr)
++ bool operator<(const HostRec& hr) const
+ { return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
+ };
+
diff --git a/net/netmap/files/patch-netmap__misc.h b/net/netmap/files/patch-netmap__misc.h
new file mode 100644
index 000000000000..2e6df77fe210
--- /dev/null
+++ b/net/netmap/files/patch-netmap__misc.h
@@ -0,0 +1,10 @@
+--- netmap/misc.h.orig
++++ netmap/misc.h
+@@ -2,7 +2,6 @@
+ #define _misc_h_
+
+ #include <string>
+-#include <strstream>
+ #include <iostream>
+
+ #include <list>
diff --git a/net/netmap/files/patch-netmap__netmap.c b/net/netmap/files/patch-netmap__netmap.c
new file mode 100644
index 000000000000..488673ef8522
--- /dev/null
+++ b/net/netmap/files/patch-netmap__netmap.c
@@ -0,0 +1,26 @@
+--- netmap/netmap.c.orig
++++ netmap/netmap.c
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+ #include <fstream>
+
+@@ -18,7 +18,7 @@
+ Dbgfile dbgs;
+ int cdb = 1;
+
+-static void copy_line(strstream& os, istream& inf)
++static void copy_line(stringstream& os, istream& inf)
+ {
+ string result;
+
+@@ -67,7 +67,7 @@
+ int nr_hops = 0;
+ int invalid_hosts_found = 0;
+ while(inf && !inf.eof()) {
+- strstream line;
++ stringstream line;
+ copy_line(line, inf);
+
+ if(max_hops && ++nr_hops > max_hops) {