summaryrefslogtreecommitdiff
path: root/package/jamvm/patches/patch-src_os_linux_os_c
blob: a867841e31d12bd1b46534263afe92422f442421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
 }