summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-poll.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2022-10-10 03:32:43 +0200
committerDamien Miller <djm@mindrot.org>2022-10-10 03:32:43 +0200
commitc64b62338b46ffa08839f05f21ad69fa6234dc17 (patch)
treea52f20ffd15dfa1d73f7eb26d387e15f49712c1b /openbsd-compat/bsd-poll.h
parentupstream: honour user's umask if it is more restrictive then the ssh (diff)
downloadopenssh-c64b62338b46ffa08839f05f21ad69fa6234dc17.tar.xz
openssh-c64b62338b46ffa08839f05f21ad69fa6234dc17.zip
skip bsd-poll.h if poll.h found; ok dtucker
Diffstat (limited to 'openbsd-compat/bsd-poll.h')
-rw-r--r--openbsd-compat/bsd-poll.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-poll.h b/openbsd-compat/bsd-poll.h
index 586647ee1..db365af22 100644
--- a/openbsd-compat/bsd-poll.h
+++ b/openbsd-compat/bsd-poll.h
@@ -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_ */