diff options
-rw-r--r-- | src/pal/src/misc/sysinfo.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pal/src/misc/sysinfo.cpp b/src/pal/src/misc/sysinfo.cpp index e3d001b544..56c72878be 100644 --- a/src/pal/src/misc/sysinfo.cpp +++ b/src/pal/src/misc/sysinfo.cpp @@ -26,9 +26,12 @@ Revision History: #include <errno.h> #include <unistd.h> #include <sys/types.h> -#if HAVE_SYSCTL + +#if HAVE_SYSCONF +// <unistd.h> already included above +#elif HAVE_SYSCTL #include <sys/sysctl.h> -#elif !HAVE_SYSCONF +#else #error Either sysctl or sysconf is required for GetSystemInfo. #endif |