|
@@ -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
|
|
|
+ }
|
|
|
+
|