diff options
Diffstat (limited to 'plugins/common.h')
-rw-r--r-- | plugins/common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/common.h b/plugins/common.h index f024b2ae..b49ad945 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -82,10 +82,12 @@ | |||
82 | getting that data | 82 | getting that data |
83 | Will return -1 if cannot get data | 83 | Will return -1 if cannot get data |
84 | */ | 84 | */ |
85 | #ifdef HAVE_SYSCONF__SC_NPROCESSORS_CONF | 85 | #if defined(HAVE_SYSCONF__SC_NPROCESSORS_ONLN) |
86 | #define GET_NUMBER_OF_CPUS() sysconf(_SC_NPROCESSORS_CONF) | 86 | # define GET_NUMBER_OF_CPUS() sysconf(_SC_NPROCESSORS_ONLN) |
87 | #elif defined (HAVE_SYSCONF__SC_NPROCESSORS_CONF) | ||
88 | # define GET_NUMBER_OF_CPUS() sysconf(_SC_NPROCESSORS_CONF) | ||
87 | #else | 89 | #else |
88 | #define GET_NUMBER_OF_CPUS() -1 | 90 | # define GET_NUMBER_OF_CPUS() -1 |
89 | #endif | 91 | #endif |
90 | 92 | ||
91 | #ifdef TIME_WITH_SYS_TIME | 93 | #ifdef TIME_WITH_SYS_TIME |
@@ -115,9 +117,7 @@ | |||
115 | #include <getopt.h> | 117 | #include <getopt.h> |
116 | #include "dirname.h" | 118 | #include "dirname.h" |
117 | 119 | ||
118 | #ifdef HAVE_LOCALE_H | ||
119 | #include <locale.h> | 120 | #include <locale.h> |
120 | #endif | ||
121 | 121 | ||
122 | #ifdef HAVE_SYS_POLL_H | 122 | #ifdef HAVE_SYS_POLL_H |
123 | # include "sys/poll.h" | 123 | # include "sys/poll.h" |