summaryrefslogtreecommitdiffstats
path: root/lang/moscow_ml/files
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2002-06-09 06:52:52 +0000
committerjkoshy <jkoshy@FreeBSD.org>2002-06-09 06:52:52 +0000
commit3ad4515e2b76fde30a265796a0e45f84fad5f482 (patch)
tree800e65bc23f80971852c6e1ecb1ef7834687a028 /lang/moscow_ml/files
parent52737a0dc522859e79f9bd6addf4cec2df83c885 (diff)
downloadFreeBSD-ports-3ad4515e2b76fde30a265796a0e45f84fad5f482.zip
FreeBSD-ports-3ad4515e2b76fde30a265796a0e45f84fad5f482.tar.gz
Make dynlibs/msocket/libmsocket.so work. Bump PORTREVISION.
Diffstat (limited to 'lang/moscow_ml/files')
-rw-r--r--lang/moscow_ml/files/patch-dynlibs::msocket::msocket.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/moscow_ml/files/patch-dynlibs::msocket::msocket.c b/lang/moscow_ml/files/patch-dynlibs::msocket::msocket.c
new file mode 100644
index 0000000..21fa872
--- /dev/null
+++ b/lang/moscow_ml/files/patch-dynlibs::msocket::msocket.c
@@ -0,0 +1,26 @@
+--- dynlibs/msocket/msocket.c.orig Fri Jan 21 15:37:13 2000
++++ dynlibs/msocket/msocket.c Sun Jun 9 12:40:19 2002
+@@ -469,6 +469,7 @@
+ EXTERNML value msocket_bind(value socket, value address) {
+ int ret, size;
+ union saddr addr;
++ bzero(&addr, sizeof(addr));
+ make_saddr(&addr, address);
+ size = Int_val(Size_addrval(address));
+ ret = bind(Sock_val(socket), &addr.sockaddr_gen, size);
+@@ -486,6 +487,7 @@
+ int ret, size;
+ union saddr addr;
+
++ bzero(&addr, sizeof(addr));
+ make_saddr(&addr, address);
+ size = Int_val(Size_addrval(address));
+
+@@ -572,6 +574,7 @@
+ signal(SIGPIPE, SIG_IGN);
+ #endif
+
++ bzero(&addr, sizeof(addr));
+ make_saddr(&addr, address);
+ enter_blocking_section();
+ ret = sendto(Sock_val(sock), &Byte(buff, Long_val(Field(tup,0))),
OpenPOWER on IntegriCloud