diff --git a/cpucount.c b/cpucount.c index 32f32ff..74ed782 100644 --- a/cpucount.c +++ b/cpucount.c @@ -124,6 +124,7 @@ int cpucount(void) #endif #ifdef __linux__ // try parsing /proc/cpuinfo + // NOTE seems cygwin can provide this too, idk if need tho ncpu = parsecpuinfo(); if (ncpu > 0) return ncpu; diff --git a/main.c b/main.c index 522a91b..f4ea80e 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -#ifdef __linux__ +#ifdef __GLIBC__ #define _POSIX_C_SOURCE 200112L #endif diff --git a/worker.c b/worker.c index fe4d606..db279b0 100644 --- a/worker.c +++ b/worker.c @@ -1,4 +1,4 @@ -#ifdef __linux__ +#ifdef __GLIBC__ #define _POSIX_C_SOURCE 200112L #endif diff --git a/yaml.c b/yaml.c index 6a16965..4649ac7 100644 --- a/yaml.c +++ b/yaml.c @@ -1,4 +1,4 @@ -#ifdef __linux__ +#ifdef __GLIBC__ #define _POSIX_C_SOURCE 200112L #endif