From de662bfa42cd333f4e6c4f8123177b195d8a2dc5 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Wed, 12 Sep 2001 11:18:39 +0000 Subject: Fix a potential crash on 5-CURRENT. Submitted by: Fuyuhiko Maruyama --- java/jdk15/Makefile | 1 + ...:src::solaris::hpi::green_threads::src::iomgr.c | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 java/jdk15/files/patch-..::src::solaris::hpi::green_threads::src::iomgr.c (limited to 'java/jdk15') 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 -- cgit v1.2.3