summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2021-09-09 23:28:46 +0000
committerYann Ylavic <ylavic@apache.org>2021-09-09 23:28:46 +0000
commitee88e3f3644f802df0155599abd88d5838fa6bb7 (patch)
tree33e2014179c81475d2d3614988dfe89e00770c66 /include/arch
parent6128ac5307a958dccb1af4ebbb5cfa95607a8454 (diff)
downloadapr-ee88e3f3644f802df0155599abd88d5838fa6bb7.tar.gz
poll: don't #include sys/poll.h if poll.h is available.
With musl libc, this fixes: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1893198 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/unix/apr_arch_poll_private.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/arch/unix/apr_arch_poll_private.h b/include/arch/unix/apr_arch_poll_private.h
index ff8131231..4c2aaa704 100644
--- a/include/arch/unix/apr_arch_poll_private.h
+++ b/include/arch/unix/apr_arch_poll_private.h
@@ -19,9 +19,7 @@
#if HAVE_POLL_H
#include <poll.h>
-#endif
-
-#if HAVE_SYS_POLL_H
+#elif HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif