diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2002-10-31 17:56:56 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2002-10-31 17:56:56 +0000 |
commit | e4956ee69660cec9c2bc3e0e6ab6b6328bd25bcf (patch) | |
tree | 99834f1c64b3088b19df066f3e22145df8f71ef6 /java/jdk16 | |
parent | Fix build on -CURRENT. (diff) |
. Fix UDP packet broadcasting.
. Bump PORTREVISION.
Submitted by: daichi, Tetsuo Suzuki <tetsuo@ss-lab.net>
Notes
Notes:
svn path=/head/; revision=69202
Diffstat (limited to 'java/jdk16')
-rw-r--r-- | java/jdk16/Makefile | 2 | ||||
-rw-r--r-- | java/jdk16/files/patch-PlainDatagramSocketImpl.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile index 797c966b8d94..ca17e5eec65e 100644 --- a/java/jdk16/Makefile +++ b/java/jdk16/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/jdk16/files/patch-PlainDatagramSocketImpl.c b/java/jdk16/files/patch-PlainDatagramSocketImpl.c new file mode 100644 index 000000000000..5ca1cf81f6a4 --- /dev/null +++ b/java/jdk16/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)); |