diff options
author | Yann Ylavic <ylavic@apache.org> | 2021-09-09 23:28:46 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2021-09-09 23:28:46 +0000 |
commit | ee88e3f3644f802df0155599abd88d5838fa6bb7 (patch) | |
tree | 33e2014179c81475d2d3614988dfe89e00770c66 /support | |
parent | 6128ac5307a958dccb1af4ebbb5cfa95607a8454 (diff) | |
download | apr-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 'support')
-rw-r--r-- | support/unix/waitio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/support/unix/waitio.c b/support/unix/waitio.c index 0d762ea6d..fa5edb65e 100644 --- a/support/unix/waitio.c +++ b/support/unix/waitio.c @@ -30,10 +30,9 @@ #ifdef WAITIO_USES_POLL -#ifdef HAVE_POLL_H +#if HAVE_POLL_H #include <poll.h> -#endif -#ifdef HAVE_SYS_POLL_H +#elif HAVE_SYS_POLL_H #include <sys/poll.h> #endif |