diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netmap/files/patch-belgolib::dirs.h | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-belgolib::dirs_core.c | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-belgolib::dirs_core.h | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-belgolib::files.c | 28 | ||||
-rw-r--r-- | net/netmap/files/patch-belgolib::files.h | 19 | ||||
-rw-r--r-- | net/netmap/files/patch-belgolib::search.c | 11 | ||||
-rw-r--r-- | net/netmap/files/patch-makelist::config.h | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-netmap::config.h | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-netmap::lookup.c | 22 | ||||
-rw-r--r-- | net/netmap/files/patch-netmap::misc.c | 11 | ||||
-rw-r--r-- | net/netmap/files/patch-netmap::misc.h | 10 | ||||
-rw-r--r-- | net/netmap/files/patch-netmap::netmap.c | 20 |
12 files changed, 169 insertions, 2 deletions
diff --git a/net/netmap/files/patch-belgolib::dirs.h b/net/netmap/files/patch-belgolib::dirs.h new file mode 100644 index 000000000000..4d912a46559c --- /dev/null +++ b/net/netmap/files/patch-belgolib::dirs.h @@ -0,0 +1,10 @@ +--- belgolib/dirs.h.orig Sun Dec 15 14:54:27 2002 ++++ belgolib/dirs.h Sun Dec 15 14:54:27 2002 +@@ -3,6 +3,7 @@ + // - Consider using vector instead of list<T*>'s + + #include <list> ++using namespace std; + + #ifndef __make_dep__ + #include <string> diff --git a/net/netmap/files/patch-belgolib::dirs_core.c b/net/netmap/files/patch-belgolib::dirs_core.c new file mode 100644 index 000000000000..425d097f0297 --- /dev/null +++ b/net/netmap/files/patch-belgolib::dirs_core.c @@ -0,0 +1,10 @@ +--- belgolib/dirs_core.c.orig Sun Dec 15 15:02:19 2002 ++++ belgolib/dirs_core.c Sun Dec 15 15:02:25 2002 +@@ -1,6 +1,6 @@ + #include "dirs_core.h" + +-Oinfo::Oinfo(const string& fname, int fmode=0) ++Oinfo::Oinfo(const string& fname, int fmode) + { + stat_info = new struct stat; + diff --git a/net/netmap/files/patch-belgolib::dirs_core.h b/net/netmap/files/patch-belgolib::dirs_core.h new file mode 100644 index 000000000000..03f9a3319a78 --- /dev/null +++ b/net/netmap/files/patch-belgolib::dirs_core.h @@ -0,0 +1,10 @@ +--- belgolib/dirs_core.h.orig Wed Dec 19 07:46:22 2001 ++++ belgolib/dirs_core.h Sun Dec 15 15:01:06 2002 +@@ -4,6 +4,7 @@ + + #ifndef __make_dep__ + #include <string> ++using namespace std; + #endif + + #ifndef __dirs_core_h__ diff --git a/net/netmap/files/patch-belgolib::files.c b/net/netmap/files/patch-belgolib::files.c new file mode 100644 index 000000000000..c5aab8d1dcc4 --- /dev/null +++ b/net/netmap/files/patch-belgolib::files.c @@ -0,0 +1,28 @@ +--- belgolib/files.c.orig Sun Dec 15 14:54:27 2002 ++++ belgolib/files.c Sun Dec 15 14:54:27 2002 +@@ -1,6 +1,7 @@ + #include <errno.h> + #include <stdio.h> + #include <assert.h> ++#include <iostream> + + #include "files.h" + #include "debug.h" +@@ -16,7 +17,7 @@ + + Infile::Infile() : ifstream() { } + +-Infile::Infile(const string& file_name, int mode, bool fatal) ++Infile::Infile(const string& file_name, ios::openmode mode, bool fatal) + : ifstream(file_name.c_str(), mode) + { + +@@ -38,7 +39,7 @@ + } + + +-int Infile::Open(const string & file_name, int mode, bool fatal) ++int Infile::Open(const string & file_name, ios::openmode mode, bool fatal) + { + + if(cdb>d_list) diff --git a/net/netmap/files/patch-belgolib::files.h b/net/netmap/files/patch-belgolib::files.h new file mode 100644 index 000000000000..b62a4ab709b6 --- /dev/null +++ b/net/netmap/files/patch-belgolib::files.h @@ -0,0 +1,19 @@ +--- belgolib/files.h.orig Sun Dec 15 14:54:27 2002 ++++ belgolib/files.h Sun Dec 15 14:54:27 2002 +@@ -1,4 +1,5 @@ + #include <fstream> ++using namespace std; + + #ifndef __make_dep__ + #include <string> //makedepend bug +@@ -15,8 +16,8 @@ + class Infile : public ifstream { + public: + Infile(); +- Infile(const string &, int mode=ios::in, bool=false); +- int Open(const string &, int mode=ios::in, bool=false); ++ Infile(const string &, ios::openmode mode=ios::in, bool=false); ++ int Open(const string &, ios::openmode mode=ios::in, bool=false); + + protected: + int check_open() const; diff --git a/net/netmap/files/patch-belgolib::search.c b/net/netmap/files/patch-belgolib::search.c new file mode 100644 index 000000000000..a70795fa237d --- /dev/null +++ b/net/netmap/files/patch-belgolib::search.c @@ -0,0 +1,11 @@ +--- belgolib/search.c.orig Sun Dec 15 14:54:27 2002 ++++ belgolib/search.c Sun Dec 15 14:54:27 2002 +@@ -5,7 +5,7 @@ + // SearchPath members + + +-void SearchPath::add_dir(const list<string>& dlist, int depth = 0) ++void SearchPath::add_dir(const list<string>& dlist, int depth) + { + for(CSiter diter = dlist.begin(); diter != dlist.end(); diter++) + add_dir( *diter, depth); diff --git a/net/netmap/files/patch-makelist::config.h b/net/netmap/files/patch-makelist::config.h new file mode 100644 index 000000000000..7059beb43041 --- /dev/null +++ b/net/netmap/files/patch-makelist::config.h @@ -0,0 +1,10 @@ +--- makelist/config.h.orig Sun Dec 15 14:54:27 2002 ++++ makelist/config.h Sun Dec 15 14:54:27 2002 +@@ -2,6 +2,7 @@ + #define _config_h_ + + #include <string> ++using namespace std; + + extern int par_traceroute; + diff --git a/net/netmap/files/patch-netmap::config.h b/net/netmap/files/patch-netmap::config.h new file mode 100644 index 000000000000..87fd973fca04 --- /dev/null +++ b/net/netmap/files/patch-netmap::config.h @@ -0,0 +1,10 @@ +--- netmap/config.h.orig Sun Dec 15 14:54:26 2002 ++++ netmap/config.h Sun Dec 15 14:54:26 2002 +@@ -3,6 +3,7 @@ + + #include <list> + #include <string> ++using namespace std; + + const string version = "NetMap 0.1.2 20011221"; + diff --git a/net/netmap/files/patch-netmap::lookup.c b/net/netmap/files/patch-netmap::lookup.c index 8b432ab3d9a4..c756665f00ce 100644 --- a/net/netmap/files/patch-netmap::lookup.c +++ b/net/netmap/files/patch-netmap::lookup.c @@ -1,5 +1,5 @@ ---- netmap/lookup.c.orig Sun Feb 10 02:57:26 2002 -+++ netmap/lookup.c Sun Feb 10 02:59:22 2002 +--- netmap/lookup.c.orig Sun Dec 15 14:54:26 2002 ++++ netmap/lookup.c Sun Dec 15 14:54:26 2002 @@ -1,6 +1,8 @@ #include <strstream> #include <iostream> @@ -9,3 +9,21 @@ #include <netdb.h> //hostent def //from belgolib +@@ -83,7 +85,7 @@ + if(verbose_lvl) + cout << indent(2) << "Reading " << fname << endl; + +- Infile cfile(fname, ios::bin | ios::in); ++ Infile cfile(fname, ios::binary | ios::in); + + while(cfile && !cfile.eof()) { + HostRec hr; +@@ -229,7 +231,7 @@ + + void LookUp::read_failedip(const string& fname) + { +- Infile cfile(fname, ios::bin | ios::in); ++ Infile cfile(fname, ios::binary | ios::in); + + while(cfile && !cfile.eof()) { + string ip; diff --git a/net/netmap/files/patch-netmap::misc.c b/net/netmap/files/patch-netmap::misc.c new file mode 100644 index 000000000000..32f365a75d9f --- /dev/null +++ b/net/netmap/files/patch-netmap::misc.c @@ -0,0 +1,11 @@ +--- 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 @@ + return false; + + bool had_point = false; +- int beyond_point = 0; ++ unsigned int beyond_point = 0; + + int int_first = 0; + for(unsigned i = 0; i < str.length(); i++) { diff --git a/net/netmap/files/patch-netmap::misc.h b/net/netmap/files/patch-netmap::misc.h new file mode 100644 index 000000000000..8ba4bdb46e24 --- /dev/null +++ b/net/netmap/files/patch-netmap::misc.h @@ -0,0 +1,10 @@ +--- netmap/misc.h.orig Sun Dec 15 14:54:26 2002 ++++ netmap/misc.h Sun Dec 15 14:54:26 2002 +@@ -6,6 +6,7 @@ + #include <iostream> + + #include <list> ++using namespace std; + + + string indent(unsigned); diff --git a/net/netmap/files/patch-netmap::netmap.c b/net/netmap/files/patch-netmap::netmap.c new file mode 100644 index 000000000000..9cb6b449815f --- /dev/null +++ b/net/netmap/files/patch-netmap::netmap.c @@ -0,0 +1,20 @@ +--- netmap/netmap.c.orig Sun Dec 15 14:54:26 2002 ++++ netmap/netmap.c Sun Dec 15 14:54:26 2002 +@@ -32,7 +32,7 @@ + + int count_invalid_hosts(const string& fname) + { +- Infile inf(fname, ios::bin | ios::in); ++ Infile inf(fname, ios::binary | ios::in); + + int invalid_hosts = 0; + int invalid_left = 0; +@@ -60,7 +60,7 @@ + const int num_invalid_hosts = + (keep_reading?count_invalid_hosts(fname):0); + +- Infile inf(fname, ios::bin | ios::in); ++ Infile inf(fname, ios::binary | ios::in); + + int mark_first = 1; + string prev_addr = inv_ip; |