aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>2001-04-03 19:28:33 +0800
committermharo <mharo@FreeBSD.org>2001-04-03 19:28:33 +0800
commit9feeea2ce80197d4907a5451b43081d973c704cf (patch)
treec66a990e5fea4a431442cf14284305cf9215dcd2 /lang
parent976c32761c16b429e87ec868b54a11ffca8fa327 (diff)
downloadfreebsd-ports-gnome-9feeea2ce80197d4907a5451b43081d973c704cf.tar.gz
freebsd-ports-gnome-9feeea2ce80197d4907a5451b43081d973c704cf.tar.zst
freebsd-ports-gnome-9feeea2ce80197d4907a5451b43081d973c704cf.zip
fix so (socket-server) of clisp does creates a socket
PR: 20793 Submitted by: Serguei Soltan <ssoltan@usa.net>
Diffstat (limited to 'lang')
-rw-r--r--lang/clisp/files/patch-ab33
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/clisp/files/patch-ab b/lang/clisp/files/patch-ab
new file mode 100644
index 000000000000..7106dd897ba7
--- /dev/null
+++ b/lang/clisp/files/patch-ab
@@ -0,0 +1,33 @@
+*** src/socket.d.orig Fri Jan 14 10:06:05 2000
+--- src/socket.d Tue Aug 22 23:42:49 2000
+***************
+*** 299,312 ****
+ {
+ #ifdef HAVE_INET_PTON
+ #ifdef HAVE_IPV6
+! { var struct sockaddr_in6 inaddr;
+ if (inet_pton(AF_INET6,host,&inaddr.sin6_addr) > 0)
+ { inaddr.sin6_family = AF_INET6;
+ inaddr.sin6_port = htons(port);
+ return connector((struct sockaddr *) &inaddr, sizeof(struct sockaddr_in6));
+ } }
+ #endif
+! { var struct sockaddr_in inaddr;
+ if (inet_pton(AF_INET,host,&inaddr.sin_addr) > 0)
+ { inaddr.sin_family = AF_INET;
+ inaddr.sin_port = htons(port);
+--- 299,312 ----
+ {
+ #ifdef HAVE_INET_PTON
+ #ifdef HAVE_IPV6
+! { var struct sockaddr_in6 inaddr = {0};
+ if (inet_pton(AF_INET6,host,&inaddr.sin6_addr) > 0)
+ { inaddr.sin6_family = AF_INET6;
+ inaddr.sin6_port = htons(port);
+ return connector((struct sockaddr *) &inaddr, sizeof(struct sockaddr_in6));
+ } }
+ #endif
+! { var struct sockaddr_in inaddr = {0};
+ if (inet_pton(AF_INET,host,&inaddr.sin_addr) > 0)
+ { inaddr.sin_family = AF_INET;
+ inaddr.sin_port = htons(port);