aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index ee3bf0fd50..e99abcb16d 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -27,9 +27,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_SYS_SYSCTL_H
-#include <sys/sysctl.h>
-#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
@@ -70,6 +67,11 @@
#include <sys/capability.h>
#endif
+/* Now deprecated in Linux GLIBC */
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(_WIN32) && !defined(__linux__)
+#include <sys/sysctl.h>
+#endif
+
#ifdef _WIN32
#include <conio.h>
#include <wchar.h>