patch-libcilkrts_runtime_os-unix_c 841 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-libcilkrts_runtime_os-unix_c,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
  2. --- libcilkrts/runtime/os-unix.c.orig Mon Jan 20 18:49:22 2014
  3. +++ libcilkrts/runtime/os-unix.c Fri Feb 14 20:24:55 2014
  4. @@ -56,6 +56,8 @@
  5. // Uses sysconf(_SC_NPROCESSORS_ONLN) in verbose output
  6. #elif defined __FreeBSD__
  7. // No additional include files
  8. +#elif defined __OpenBSD__
  9. +// No additional include files
  10. #elif defined __CYGWIN__
  11. // Cygwin on Windows - no additional include files
  12. #elif defined __VXWORKS__
  13. @@ -374,7 +376,7 @@ COMMON_SYSDEP int __cilkrts_hardware_cpu_count(void)
  14. assert((unsigned)count == count);
  15. return count;
  16. -#elif defined __FreeBSD__ || defined __CYGWIN__
  17. +#elif defined __FreeBSD__ || defined __OpenBSD__ || defined __CYGWIN__
  18. int ncores = sysconf(_SC_NPROCESSORS_ONLN);
  19. return ncores;