summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-04-17 14:07:15 +1000
committerDamien Miller <djm@mindrot.org>2020-04-17 14:07:15 +1000
commitf96f17f920f38ceea6f3c5cb0b075c46b8929fdc (patch)
treeca27fc7e8507fecccd3c263f6d946d61f9cbbb5a
parent54688e937a69c7aebef8a3d50cbd4c6345bab2ca (diff)
sys/sysctl.h is only used on OpenBSD
so change the preprocessor test used to include it to check __OpenBSD__, matching the code that uses the symbols it declares.
-rw-r--r--servconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 7e422ec8..ce5572db 100644
--- a/servconf.c
+++ b/servconf.c
@@ -15,7 +15,7 @@
#include <sys/types.h>
#include <sys/socket.h>
-#ifdef HAVE_SYS_SYSCTL_H
+#ifdef __OpenBSD__
#include <sys/sysctl.h>
#endif