diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-02-22 02:25:52 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-02-22 02:25:52 +0100 |
commit | 5a102e9cb287a43bd7dfe594b775a89a8e94697c (patch) | |
tree | 0c23f80ffeabc054f5b576a31e59280224d96061 /openbsd-compat/bsd-poll.h | |
parent | disable agent-restrict test on minix3 (diff) | |
download | openssh-5a102e9cb287a43bd7dfe594b775a89a8e94697c.tar.xz openssh-5a102e9cb287a43bd7dfe594b775a89a8e94697c.zip |
Only include sys/poll.h if we don't have poll.h.
Prevents warnings on MUSL based systems such as Alpine.
Diffstat (limited to '')
-rw-r--r-- | openbsd-compat/bsd-poll.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-poll.h b/openbsd-compat/bsd-poll.h index fb99b66f2..586647ee1 100644 --- a/openbsd-compat/bsd-poll.h +++ b/openbsd-compat/bsd-poll.h @@ -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 |