freebsd-ports/net/csocks/files/patch-src_csocks.c
Erwin Lansing 90f8513dd1 Fix build on 5.x
Submitted by:	Raffaele De Lorenzo <raffaele.delorenzo@libero.it> (maintainer)
2008-02-25 13:06:53 +00:00

14 lines
436 B
C

--- csocks.c.orig 2008-02-25 09:37:38.000000000 +0100
+++ csocks.c 2008-02-25 09:38:53.000000000 +0100
@@ -1537,11 +1537,7 @@
continue;
}while(1);
-#if defined(DARWIN) || defined(NETBSD)
if ((rlen = send (sock, (void *) sen, lenght, 0)) <= 0){
-#else
- if ((rlen = send (sock, (void *) sen, lenght, MSG_NOSIGNAL)) <= 0){
-#endif
fprintf(stderr,"ERROR - socks_send - send - cannot send message!\n");
return CSOCKS_KO;
}