diff options
-rw-r--r-- | src/helper/options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/options.c b/src/helper/options.c index b60d58d..6622ece 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -34,9 +34,12 @@ #if IS_DARWIN #include <libproc.h> #endif +/* sys/sysctl.h is deprecated on Linux from glibc 2.30 */ +#ifndef __linux__ #ifdef HAVE_SYS_SYSCTL_H #include <sys/sysctl.h> #endif +#endif #if IS_WIN32 && !IS_CYGWIN #include <windows.h> #endif |