threads: always include necessary headers for number of CPUs detection
Since the conditions for the actual usage are more specific a less preferred method can be used. This would cause compilation errors because necessary headers are not included.
This commit is contained in:
@ -34,9 +34,11 @@
|
|||||||
#if HAVE_SCHED_GETAFFINITY
|
#if HAVE_SCHED_GETAFFINITY
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#elif HAVE_GETSYSTEMINFO
|
#endif
|
||||||
|
#if HAVE_GETSYSTEMINFO
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#elif HAVE_SYSCTL
|
#endif
|
||||||
|
#if HAVE_SYSCTL
|
||||||
#if HAVE_SYS_PARAM_H
|
#if HAVE_SYS_PARAM_H
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user