diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-02-16 23:58:16 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-02-16 23:58:16 +0000 |
commit | 6ff1cd31f39aee68ef48bf1a34881132a7036170 (patch) | |
tree | 6794eb88619f12e11a2ab394cf9743bb12fc7c6e /java/openjdk7 | |
parent | Update to 0.8.0 (diff) |
Properly use BLOCKING_IO_RETURN_INT() macro for NET_Accept().
Notes
Notes:
svn path=/head/; revision=379126
Diffstat (limited to 'java/openjdk7')
-rw-r--r-- | java/openjdk7/Makefile | 1 | ||||
-rw-r--r-- | java/openjdk7/files/patch-src-solaris-native-java-net-bsd_close.c | 16 |
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) { |