summaryrefslogtreecommitdiff
path: root/servconf.c
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 /servconf.c
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.
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 7e422ec8f..ce5572db7 100644
--- a/servconf.c
+++ b/servconf.c
@@ -15,7 +15,7 @@
15 15
16#include <sys/types.h> 16#include <sys/types.h>
17#include <sys/socket.h> 17#include <sys/socket.h>
18#ifdef HAVE_SYS_SYSCTL_H 18#ifdef __OpenBSD__
19#include <sys/sysctl.h> 19#include <sys/sysctl.h>
20#endif 20#endif
21 21