summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-02-22 12:25:52 +1100
committerDarren Tucker <dtucker@dtucker.net>2022-02-22 12:25:52 +1100
commit5a102e9cb287a43bd7dfe594b775a89a8e94697c (patch)
tree0c23f80ffeabc054f5b576a31e59280224d96061
parent7c0d4ce911d5c58b6166b2db754a4e91f352adf5 (diff)
Only include sys/poll.h if we don't have poll.h.
Prevents warnings on MUSL based systems such as Alpine.
-rw-r--r--openbsd-compat/bsd-poll.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-poll.h b/openbsd-compat/bsd-poll.h
index fb99b66f..586647ee 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