summaryrefslogtreecommitdiff
path: root/net/netmap/files/patch-netmap__netmap.c
blob: 488673ef85220f5ba74b3f94d5c6dfcfa60f262f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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) {