]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Only include sys/poll.h if we don't have poll.h.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 22 Feb 2022 01:25:52 +0000 (12:25 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 22 Feb 2022 01:25:52 +0000 (12:25 +1100)
Prevents warnings on MUSL based systems such as Alpine.

openbsd-compat/bsd-poll.h

index fb99b66f2cf02c01ba667360da8bb8f34a842b2c..586647ee1aff244930212cdac62cf068fd6083b2 100644 (file)
@@ -33,8 +33,7 @@
 #include <sys/types.h>
 #ifdef HAVE_POLL_H
 # include <poll.h>
-#endif
-#ifdef HAVE_SYS_POLL_H
+#elif HAVE_SYS_POLL_H
 # include <sys/poll.h>
 #endif