Browse Source

fix musl compile

Waldemar Brodkorb 11 years ago
parent
commit
0106b3dddc
2 changed files with 18 additions and 1 deletions
  1. 1 1
      package/jamvm/Makefile
  2. 17 0
      package/jamvm/patches/patch-src_os_linux_os_c

+ 1 - 1
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

+ 17 - 0
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
+ }
+