diff options
author | fenner <fenner@FreeBSD.org> | 2006-12-04 11:12:19 +0800 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2006-12-04 11:12:19 +0800 |
commit | 0da23ac69aebf491c3a155d922170d3cd102fe96 (patch) | |
tree | af5e76cdce1a4436b6826c67dbfcde429f7c3263 /mbone | |
parent | 81a18620cd9f97dd439f06b96f3e5bc76b08fdac (diff) | |
download | freebsd-ports-gnome-0da23ac69aebf491c3a155d922170d3cd102fe96.tar.gz freebsd-ports-gnome-0da23ac69aebf491c3a155d922170d3cd102fe96.tar.zst freebsd-ports-gnome-0da23ac69aebf491c3a155d922170d3cd102fe96.zip |
Unbreak by using socklen_t as needed.
Diffstat (limited to 'mbone')
-rw-r--r-- | mbone/vat/Makefile | 4 | ||||
-rw-r--r-- | mbone/vat/files/patch-af | 25 | ||||
-rw-r--r-- | mbone/vat/files/patch-ap | 11 |
3 files changed, 29 insertions, 11 deletions
diff --git a/mbone/vat/Makefile b/mbone/vat/Makefile index 14ae80fefafe..6d7ea6896bb5 100644 --- a/mbone/vat/Makefile +++ b/mbone/vat/Makefile @@ -34,10 +34,6 @@ PLIST_FILES= bin/vat .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 501000 -BROKEN= Does not compile on FreeBSD > 5.0 -.endif - post-install: ${STRIP_CMD} ${PREFIX}/bin/vat diff --git a/mbone/vat/files/patch-af b/mbone/vat/files/patch-af index 6b73cca9f5c8..85e74ea80447 100644 --- a/mbone/vat/files/patch-af +++ b/mbone/vat/files/patch-af @@ -1,6 +1,6 @@ ---- net.cc.orig 1997/10/07 19:07:01 -+++ net.cc 1998/01/26 22:21:41 -@@ -163,46 +163,48 @@ +--- net.cc.orig Thu Mar 21 03:49:18 1996 ++++ net.cc Sun Dec 3 19:04:01 2006 +@@ -163,46 +163,49 @@ { int cc = ::send(fd, (char*)buf, len, 0); if (cc < 0) { @@ -39,7 +39,8 @@ + * } + * + */ -+ int err, errlen = sizeof(err), savederrno; ++ int err, savederrno; ++ socklen_t errlen = sizeof(err); + + savederrno = errno; + getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, @@ -87,7 +88,7 @@ break; case ENETUNREACH: -@@ -217,7 +219,7 @@ +@@ -217,7 +220,7 @@ * icmp unreachable, so we should be able to * send now. */ @@ -96,12 +97,13 @@ break; default: -@@ -264,12 +266,14 @@ +@@ -264,12 +267,15 @@ } int cc = ::sendmsg(ssock_, (msghdr*)&mh, 0); if (cc < 0) { - switch (errno) { -+ int err, errlen = sizeof(err), savederrno; ++ int err, savederrno; ++ socklen_t errlen = sizeof(err); + + savederrno = errno; + getsockopt(ssock_, SOL_SOCKET, SO_ERROR, &err, @@ -115,3 +117,12 @@ break; case ENETUNREACH: +@@ -297,7 +303,7 @@ + int Network::dorecv(u_char* buf, int len, u_int32_t& from, int fd) + { + sockaddr_in sfrom; +- int fromlen = sizeof(sfrom); ++ socklen_t fromlen = sizeof(sfrom); + int cc = ::recvfrom(fd, (char*)buf, len, 0, + (sockaddr*)&sfrom, &fromlen); + if (cc < 0) { diff --git a/mbone/vat/files/patch-ap b/mbone/vat/files/patch-ap new file mode 100644 index 000000000000..178e46540170 --- /dev/null +++ b/mbone/vat/files/patch-ap @@ -0,0 +1,11 @@ +--- net-ip.cc.orig Thu May 16 05:28:06 1996 ++++ net-ip.cc Sun Dec 3 19:04:50 2006 +@@ -203,7 +203,7 @@ + { + memset((char *)p, 0, sizeof(*p)); + p->sin_family = AF_INET; +- int len = sizeof(*p); ++ socklen_t len = sizeof(*p); + if (getsockname(ssock_, (struct sockaddr *)p, &len) < 0) { + perror("getsockname"); + p->sin_addr.s_addr = 0; |