diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-01-19 09:28:21 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-01-19 09:28:21 +0000 |
commit | 177df99bd7b7ba397069cafa7191a43c0df4c159 (patch) | |
tree | f7507675e918e36c1c75e3fa13c10efba1be88f3 /net/netmap/files/patch-netmap__netmap.c | |
parent | - Fix build (diff) |
- Fix build with clang
PR: 185506
Submitted by: ports fury
Diffstat (limited to 'net/netmap/files/patch-netmap__netmap.c')
-rw-r--r-- | net/netmap/files/patch-netmap__netmap.c | 26 |
1 files changed, 26 insertions, 0 deletions
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) { |