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 /lib/select.h | |
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 'lib/select.h')
-rw-r--r-- | lib/select.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/select.h b/lib/select.h index e247bd9d0..4ed5dd2f8 100644 --- a/lib/select.h +++ b/lib/select.h @@ -24,10 +24,10 @@ #include "curl_setup.h" -#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 /* |