1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/libsocketcpp/files/patch-src::tcpsocket.cpp
Erwin Lansing 3701674180 add patch to fix build on alpha/sparc64
Noticed by: 	bento via kris
2003-07-11 13:10:26 +00:00

12 lines
400 B
C++

--- 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");