summaryrefslogtreecommitdiff
path: root/package/jamvm/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-25 16:46:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-25 16:46:24 +0100
commit0106b3dddcd0b1cfa4d090b0ee1f9d71dce5e98c (patch)
tree58f44389823d63b5fdb57a2772aebfc49f01978c /package/jamvm/patches
parent7fac1b46c0be1b04ab3765f6528a41e8939b2cb2 (diff)
fix musl compile
Diffstat (limited to 'package/jamvm/patches')
-rw-r--r--package/jamvm/patches/patch-src_os_linux_os_c17
1 files changed, 17 insertions, 0 deletions
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
+ }
+