summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/jamvm/Makefile2
-rw-r--r--package/jamvm/patches/patch-src_os_linux_os_c17
2 files changed, 18 insertions, 1 deletions
diff --git a/package/jamvm/Makefile b/package/jamvm/Makefile
index 44d160ee1..6cca7f5d8 100644
--- a/package/jamvm/Makefile
+++ b/package/jamvm/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= jamvm
PKG_VERSION:= 1.5.4
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
PKG_DESCR:= A Java Virtual Machine (JVM) implementation
PKG_SECTION:= lang
diff --git a/package/jamvm/patches/patch-src_os_linux_os_c b/package/jamvm/patches/patch-src_os_linux_os_c
new file mode 100644
index 000000000..a867841e3
--- /dev/null
+++ b/package/jamvm/patches/patch-src_os_linux_os_c
@@ -0,0 +1,17 @@
+--- jamvm-1.5.4.orig/src/os/linux/os.c 2009-12-31 19:40:48.000000000 +0100
++++ jamvm-1.5.4/src/os/linux/os.c 2013-12-25 16:43:03.000000000 +0100
+@@ -46,10 +46,12 @@ void *nativeStackBase() {
+ }
+
+ int nativeAvailableProcessors() {
+-#ifdef __UCLIBC__
++#if defined(__UCLIBC__)
+ return 1;
+-#else
++#elif defined(__GLIBC__)
+ return get_nprocs();
++#else
++ return 1;
+ #endif
+ }
+