]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
skip bsd-poll.h if poll.h found; ok dtucker
authorDamien Miller <djm@mindrot.org>
Mon, 10 Oct 2022 01:32:43 +0000 (12:32 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 10 Oct 2022 01:32:43 +0000 (12:32 +1100)
openbsd-compat/bsd-poll.h

index 586647ee1aff244930212cdac62cf068fd6083b2..db365af229bbc33919bb18da93937fa1cacdb03c 100644 (file)
@@ -35,7 +35,7 @@
 # include <poll.h>
 #elif HAVE_SYS_POLL_H
 # include <sys/poll.h>
-#endif
+#else
 
 #ifndef HAVE_STRUCT_POLLFD_FD
 typedef struct pollfd {
@@ -73,5 +73,5 @@ int   poll(struct pollfd *, nfds_t, int);
 #ifndef HAVE_PPOLL
 int   ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
 #endif
-
+#endif /* !HAVE_POLL_H && !HAVE_SYS_POLL_H */
 #endif /* !_COMPAT_POLL_H_ */