diff options
author | glewis <glewis@FreeBSD.org> | 2013-09-22 08:39:22 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2013-09-22 08:39:22 +0800 |
commit | af0d586dfa0c760bc45ea497a29fa2954c2ef8c0 (patch) | |
tree | b20636b1da3c5512b3ef96ca9a0e5fd9192a04e3 | |
parent | b9ce32fcd0aa62f4ba8d8683b59ada0d47ccf032 (diff) | |
download | freebsd-ports-gnome-af0d586dfa0c760bc45ea497a29fa2954c2ef8c0.tar.gz freebsd-ports-gnome-af0d586dfa0c760bc45ea497a29fa2954c2ef8c0.tar.zst freebsd-ports-gnome-af0d586dfa0c760bc45ea497a29fa2954c2ef8c0.zip |
. Make set_native_priority return a (correct) value on FreeBSD, rather than
whatever happens to be on the stack.
. Bump PORTREVISION.
Submitted by: Xiaoguang Sun <sunxiaoguang@gmail.com>
-rw-r--r-- | java/openjdk7/Makefile | 1 | ||||
-rw-r--r-- | java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile index 9a7635537dda..25ea45c339cf 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 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \ http://download.java.net/jaxp/1.4.5/:jaxp \ diff --git a/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp b/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp index b2f8297af0ed..bb3e6b4852fc 100644 --- a/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp +++ b/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp @@ -11,3 +11,11 @@ $FreeBSD$ #endif #define EXTENSIONS_DIR "/lib/ext" +@@ -3670,6 +3670,7 @@ + return OS_OK; + #elif defined(__FreeBSD__) + int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri); ++ return (ret == 0) ? OS_OK : OS_ERR; + #elif defined(__APPLE__) || defined(__NetBSD__) + struct sched_param sp; + int policy; |