]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
sys/sysctl.h is only used on OpenBSD
authorDamien Miller <djm@mindrot.org>
Fri, 17 Apr 2020 04:07:15 +0000 (14:07 +1000)
committerDamien Miller <djm@mindrot.org>
Fri, 17 Apr 2020 04:07:15 +0000 (14:07 +1000)
so change the preprocessor test used to include it to check
__OpenBSD__, matching the code that uses the symbols it declares.

servconf.c

index 7e422ec8f49ca5cbab29d3e40fe1c98ddf4ae1c3..ce5572db771c7e0b1ddb17c0d6fc7e57ece95ceb 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
-#ifdef HAVE_SYS_SYSCTL_H
+#ifdef __OpenBSD__
 #include <sys/sysctl.h>
 #endif