commit | 4c544d2410903d38402221cb783ed85585b6a007 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Fri Mar 27 22:39:07 2015 +0200 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Fri Mar 27 22:39:07 2015 +0200 |
tree | 21b27a8b98147a14b1dd2dba9b58001547a0bfb3 | |
parent | e0ea6737b03e83ccaff4514d00e31bb926f8f0f3 [diff] |
Fix CPU core count detection on QNX. It tried to use sysctl() on QNX but - it broke the build because sysctl() needs -lsocket on QNX; - sysctl() doesn't work for detecting the core count on QNX even if it compiled. sysconf() works. An alternative would have been to use QNX-specific SYSPAGE_ENTRY(num_cpu) from <sys/syspage.h>. Thanks to Ole André Vadla Ravnås.