diff --git a/src/helper/options.c b/src/helper/options.c index b60d58de8..6622ece6c 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -34,9 +34,12 @@ #if IS_DARWIN #include #endif +/* sys/sysctl.h is deprecated on Linux from glibc 2.30 */ +#ifndef __linux__ #ifdef HAVE_SYS_SYSCTL_H #include #endif +#endif #if IS_WIN32 && !IS_CYGWIN #include #endif