diff options
author | glewis <glewis@FreeBSD.org> | 2002-10-31 17:56:56 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2002-10-31 17:56:56 +0000 |
commit | 59d9c46506243c5b7e8df2a1fe108fa24a5a5577 (patch) | |
tree | c5739d4ed39cfa4dccba8da637284b0d541c045d /java/jdk15 | |
parent | 280409a688da9c96d9a7facee849ced38e113c6b (diff) | |
download | FreeBSD-ports-59d9c46506243c5b7e8df2a1fe108fa24a5a5577.zip FreeBSD-ports-59d9c46506243c5b7e8df2a1fe108fa24a5a5577.tar.gz |
. Fix UDP packet broadcasting.
. Bump PORTREVISION.
Submitted by: daichi, Tetsuo Suzuki <tetsuo@ss-lab.net>
Diffstat (limited to 'java/jdk15')
-rw-r--r-- | java/jdk15/Makefile | 2 | ||||
-rw-r--r-- | java/jdk15/files/patch-PlainDatagramSocketImpl.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index 797c966..ca17e5e 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -7,7 +7,7 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java devel MASTER_SITES= # http://www.sun.com/software/java2/download.html # http://www.eyesbeyond.com/freebsddom/java/jdk13.html diff --git a/java/jdk15/files/patch-PlainDatagramSocketImpl.c b/java/jdk15/files/patch-PlainDatagramSocketImpl.c new file mode 100644 index 0000000..5ca1cf8 --- /dev/null +++ b/java/jdk15/files/patch-PlainDatagramSocketImpl.c @@ -0,0 +1,14 @@ +$FreeBSD$ + +diff -u -r1.3 PlainDatagramSocketImpl.c +--- ../src/solaris/native/java/net/PlainDatagramSocketImpl.c 19 Aug 2001 05:46:50 -0000 1.3 ++++ ../src/solaris/native/java/net/PlainDatagramSocketImpl.c 31 Oct 2002 16:39:39 -0000 +@@ -489,7 +489,7 @@ + strerror(errno)); + return; + } +-#if defined(__linux__) && defined(SO_BROADCAST) ++#if (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && defined(SO_BROADCAST) + { + int t = 1; + setsockopt(fd, SOL_SOCKET, SO_BROADCAST, (char*) &t, sizeof(int)); |