summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2021-09-09 23:28:46 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2021-09-09 23:28:46 +0000
commite12e1f2c18470f4748262b0faae188ca90c71237 (patch)
tree33e2014179c81475d2d3614988dfe89e00770c66 /include
parentdff0316a80be865d2ec6f1ea92ca0f06f264e4f2 (diff)
downloadlibapr-e12e1f2c18470f4748262b0faae188ca90c71237.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')
-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