diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-04-10 21:59:42 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-04-11 08:31:38 +0200 |
commit | aa573c3c55cda72ec5ef677d87f6f46a53385f0c (patch) | |
tree | b339f0968448e6315ad6885e92a8fd50ccdc101c /src | |
parent | 5ed16e6a7ac49ce0df35e31dd89ce85a1222da65 (diff) | |
download | curl-aa573c3c55cda72ec5ef677d87f6f46a53385f0c.tar.gz |
poll: prefer <poll.h> over <sys/poll.h>
The POSIX standard location is <poll.h>. Using <sys/poll.h> results in
warning spam when using the musl standard library.
Closes https://github.com/curl/curl/pull/1406
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_sleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool_sleep.c b/src/tool_sleep.c index d878512ac..e19db5a77 100644 --- a/src/tool_sleep.c +++ b/src/tool_sleep.c @@ -25,10 +25,10 @@ # include <sys/select.h> #endif -#ifdef HAVE_SYS_POLL_H -# include <sys/poll.h> -#elif defined(HAVE_POLL_H) +#ifdef HAVE_POLL_H # include <poll.h> +#elif defined(HAVE_SYS_POLL_H) +# include <sys/poll.h> #endif #ifdef MSDOS |