patch-libcilkrts_runtime_os-unix_c 866 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-libcilkrts_runtime_os-unix_c,v 1.1.1.1 2016/09/04 16:20:18 pascal Exp $
  2. --- libcilkrts/runtime/os-unix.c.orig Wed May 21 13:08:58 2014
  3. +++ libcilkrts/runtime/os-unix.c Tue Aug 23 16:19:52 2016
  4. @@ -58,6 +58,8 @@
  5. // No additional include files
  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. @@ -376,7 +378,8 @@ COMMON_SYSDEP int __cilkrts_hardware_cpu_count(void)
  14. assert((unsigned)count == count);
  15. return count;
  16. -#elif defined __FreeBSD__ || defined __CYGWIN__ || defined __DragonFly__
  17. +#elif defined __FreeBSD__ || defined __CYGWIN__ || defined __DragonFly__ || \
  18. + defined __OpenBSD__
  19. int ncores = sysconf(_SC_NPROCESSORS_ONLN);
  20. return ncores;