summaryrefslogtreecommitdiff
path: root/java/jdk15
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-09-12 11:18:39 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-09-12 11:18:39 +0000
commitde662bfa42cd333f4e6c4f8123177b195d8a2dc5 (patch)
tree2fc9d2ce6a9b819f509435373f099d997a7f15d6 /java/jdk15
parentUpdate to 2.0.6. (diff)
Fix a potential crash on 5-CURRENT.
Submitted by: Fuyuhiko Maruyama <fuyuhik8@is.titech.ac.jp>
Notes
Notes: svn path=/head/; revision=47744
Diffstat (limited to 'java/jdk15')
-rw-r--r--java/jdk15/Makefile1
-rw-r--r--java/jdk15/files/patch-..::src::solaris::hpi::green_threads::src::iomgr.c28
2 files changed, 29 insertions, 0 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index 54dc1d431994..fae5f6f38f96 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
+PORTREVISION= 1
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-..::src::solaris::hpi::green_threads::src::iomgr.c b/java/jdk15/files/patch-..::src::solaris::hpi::green_threads::src::iomgr.c
new file mode 100644
index 000000000000..04b106d7778b
--- /dev/null
+++ b/java/jdk15/files/patch-..::src::solaris::hpi::green_threads::src::iomgr.c
@@ -0,0 +1,28 @@
+
+$FreeBSD$
+
+--- ../src/solaris/hpi/green_threads/src/iomgr.c.orig Wed Sep 12 12:39:31 2001
++++ ../src/solaris/hpi/green_threads/src/iomgr.c Wed Sep 12 12:39:43 2001
+@@ -716,6 +716,22 @@
+ WRAPFUNC(read);
+ WRAPFUNC(write);
+ WRAPFUNC(fcntl);
++#if __FreeBSD__ >= 5
++ WRAPFUNC(writev);
++ WRAPFUNC(readv);
++ WRAPFUNC(poll);
++ WRAPFUNC(sendto);
++ WRAPFUNC(dup);
++ WRAPFUNC(accept);
++ WRAPFUNC(recvfrom);
++ WRAPFUNC(socket);
++ WRAPFUNC(connect);
++ WRAPFUNC(select);
++ WRAPFUNC(pipe);
++ WRAPFUNC(creat);
++ WRAPFUNC(recv);
++ WRAPFUNC(send);
++#endif
+ __dummy();
+ }
+ #else