aboutsummaryrefslogtreecommitdiffstats
path: root/java/openjdk7
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2015-02-17 07:58:16 +0800
committerjkim <jkim@FreeBSD.org>2015-02-17 07:58:16 +0800
commit80e2e181dfbfbe60c63dd1f4501ba89d437bbea7 (patch)
tree6794eb88619f12e11a2ab394cf9743bb12fc7c6e /java/openjdk7
parentab6fdebedd5615a69647c34ea66f2f8b9b3bdd0f (diff)
downloadfreebsd-ports-gnome-80e2e181dfbfbe60c63dd1f4501ba89d437bbea7.tar.gz
freebsd-ports-gnome-80e2e181dfbfbe60c63dd1f4501ba89d437bbea7.tar.zst
freebsd-ports-gnome-80e2e181dfbfbe60c63dd1f4501ba89d437bbea7.zip
Properly use BLOCKING_IO_RETURN_INT() macro for NET_Accept().
Diffstat (limited to 'java/openjdk7')
-rw-r--r--java/openjdk7/Makefile1
-rw-r--r--java/openjdk7/files/patch-src-solaris-native-java-net-bsd_close.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile
index 923c1164bf16..1c5314033e3c 100644
--- a/java/openjdk7/Makefile
+++ b/java/openjdk7/Makefile
@@ -3,6 +3,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \
diff --git a/java/openjdk7/files/patch-src-solaris-native-java-net-bsd_close.c b/java/openjdk7/files/patch-src-solaris-native-java-net-bsd_close.c
new file mode 100644
index 000000000000..f097e9e16289
--- /dev/null
+++ b/java/openjdk7/files/patch-src-solaris-native-java-net-bsd_close.c
@@ -0,0 +1,16 @@
+--- jdk/src/solaris/native/java/net/bsd_close.c
++++ jdk/src/solaris/native/java/net/bsd_close.c
+@@ -316,11 +316,8 @@
+ }
+
+ int NET_Accept(int s, struct sockaddr *addr, int *addrlen) {
+- socklen_t len = *addrlen;
+- int error = accept(s, addr, &len);
+- if (error != -1)
+- *addrlen = (int)len;
+- BLOCKING_IO_RETURN_INT( s, error );
++ /* See NET_RecvFrom() */
++ BLOCKING_IO_RETURN_INT( s, accept(s, addr, (socklen_t *)addrlen) );
+ }
+
+ int NET_Connect(int s, struct sockaddr *addr, int addrlen) {