aboutsummaryrefslogtreecommitdiff
path: root/net/libsocketcpp/files/patch-src::tcpsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/libsocketcpp/files/patch-src::tcpsocket.cpp')
-rw-r--r--net/libsocketcpp/files/patch-src::tcpsocket.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/libsocketcpp/files/patch-src::tcpsocket.cpp b/net/libsocketcpp/files/patch-src::tcpsocket.cpp
new file mode 100644
index 000000000000..28b819805d55
--- /dev/null
+++ b/net/libsocketcpp/files/patch-src::tcpsocket.cpp
@@ -0,0 +1,11 @@
+--- src/tcpsocket.cpp.orig Fri Jul 11 15:00:44 2003
++++ src/tcpsocket.cpp Fri Jul 11 15:00:56 2003
+@@ -212,7 +212,7 @@
+ }
+
+ bool TCPSocket::Accept() {
+- size_t sin_size = sizeof(struct sockaddr_in);
++ socklen_t sin_size = sizeof(struct sockaddr_in);
+ //sockaddr_in RemoteAddress;
+ if((newfd = accept(sockfd, (struct sockaddr *)&RemoteAddress, &sin_size)) == -1) {
+ perror("accept");