aboutsummaryrefslogtreecommitdiffstats
path: root/net/csocks/files
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2008-02-25 21:06:53 +0800
committererwin <erwin@FreeBSD.org>2008-02-25 21:06:53 +0800
commit856d4a1f4ca355df6c24d6c194142d2b03869271 (patch)
tree5cd40b6cb41774b090a20c1c86cf611b027592de /net/csocks/files
parent23b297fdf140a8e4c5ab3870a7973cad3f06583d (diff)
downloadfreebsd-ports-gnome-856d4a1f4ca355df6c24d6c194142d2b03869271.tar.gz
freebsd-ports-gnome-856d4a1f4ca355df6c24d6c194142d2b03869271.tar.zst
freebsd-ports-gnome-856d4a1f4ca355df6c24d6c194142d2b03869271.zip
Fix build on 5.x
Submitted by: Raffaele De Lorenzo <raffaele.delorenzo@libero.it> (maintainer)
Diffstat (limited to 'net/csocks/files')
-rw-r--r--net/csocks/files/patch-src_csocks.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/csocks/files/patch-src_csocks.c b/net/csocks/files/patch-src_csocks.c
new file mode 100644
index 000000000000..ef09eb3bcfda
--- /dev/null
+++ b/net/csocks/files/patch-src_csocks.c
@@ -0,0 +1,14 @@
+--- 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;
+ }