patch-src_os_linux_os_c 384 B

1234567891011121314151617
  1. --- jamvm-1.5.4.orig/src/os/linux/os.c 2009-12-31 19:40:48.000000000 +0100
  2. +++ jamvm-1.5.4/src/os/linux/os.c 2013-12-25 16:43:03.000000000 +0100
  3. @@ -46,10 +46,12 @@ void *nativeStackBase() {
  4. }
  5. int nativeAvailableProcessors() {
  6. -#ifdef __UCLIBC__
  7. +#if defined(__UCLIBC__)
  8. return 1;
  9. -#else
  10. +#elif defined(__GLIBC__)
  11. return get_nprocs();
  12. +#else
  13. + return 1;
  14. #endif
  15. }