diff options
author | jkim <jkim@FreeBSD.org> | 2015-02-17 07:58:16 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-02-17 07:58:16 +0800 |
commit | 80e2e181dfbfbe60c63dd1f4501ba89d437bbea7 (patch) | |
tree | 6794eb88619f12e11a2ab394cf9743bb12fc7c6e /java/openjdk8 | |
parent | ab6fdebedd5615a69647c34ea66f2f8b9b3bdd0f (diff) | |
download | freebsd-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/openjdk8')
-rw-r--r-- | java/openjdk8/Makefile | 1 | ||||
-rw-r--r-- | java/openjdk8/files/patch-jdk-src-solaris-native-java-net-bsd_close.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 0e09e4b68f86..b60fc8bab016 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -2,6 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}/promoted/b${DIST_BUILD_NUMBER}/:jdk \ https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \ diff --git a/java/openjdk8/files/patch-jdk-src-solaris-native-java-net-bsd_close.c b/java/openjdk8/files/patch-jdk-src-solaris-native-java-net-bsd_close.c new file mode 100644 index 000000000000..f097e9e16289 --- /dev/null +++ b/java/openjdk8/files/patch-jdk-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) { |