summaryrefslogtreecommitdiff
path: root/net/libsocketcpp/files/patch-src__tcpservertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/libsocketcpp/files/patch-src__tcpservertest.cpp')
-rw-r--r--net/libsocketcpp/files/patch-src__tcpservertest.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/libsocketcpp/files/patch-src__tcpservertest.cpp b/net/libsocketcpp/files/patch-src__tcpservertest.cpp
new file mode 100644
index 000000000000..2dcdfc1a999a
--- /dev/null
+++ b/net/libsocketcpp/files/patch-src__tcpservertest.cpp
@@ -0,0 +1,26 @@
+--- src/tcpservertest.cpp.orig 2012-12-03 14:28:35.000000000 +0100
++++ src/tcpservertest.cpp 2012-12-03 14:28:46.000000000 +0100
+@@ -22,7 +22,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <unistd.h>
+ #include <sys/wait.h>
+ #include <sys/types.h>
+@@ -30,6 +30,7 @@
+
+ #include "tcpsocket.h"
+
++int
+ main() {
+ printf("\r\nInit Object...");
+ TCPSocket *MyServerSocket = new TCPSocket;
+@@ -67,5 +68,6 @@
+ while(waitpid(-1, NULL, WNOHANG) > 0);
+ }
+
++ return 0;
+ }
+