aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2002-06-09 06:52:52 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2002-06-09 06:52:52 +0000
commitdd662d43e8a0bc72def1aeddbcca06093db2b647 (patch)
tree41eaedf18e84b34c691681aec88558e1b1825062 /lang
parent943c1e88e345208b9c29d41ef5a52f5282a0efc2 (diff)
downloadports-dd662d43e8a0bc72def1aeddbcca06093db2b647.tar.gz
ports-dd662d43e8a0bc72def1aeddbcca06093db2b647.zip
Make dynlibs/msocket/libmsocket.so work. Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=60949
Diffstat (limited to 'lang')
-rw-r--r--lang/moscow_ml/Makefile1
-rw-r--r--lang/moscow_ml/files/patch-dynlibs::msocket::msocket.c26
2 files changed, 27 insertions, 0 deletions
diff --git a/lang/moscow_ml/Makefile b/lang/moscow_ml/Makefile
index 528a83bc93b5..b2a1111113a0 100644
--- a/lang/moscow_ml/Makefile
+++ b/lang/moscow_ml/Makefile
@@ -7,6 +7,7 @@
PORTNAME= moscow_ml
PORTVERSION= 2.00
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.dina.kvl.dk/pub/mosml/ \
ftp://ftp.csd.uu.se/pub/mirror/mosml/
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 000000000000..21fa8728b6b6
--- /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))),