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
This commit is contained in:
Marcel Raad 2017-04-10 21:59:42 +02:00
parent 5ed16e6a7a
commit aa573c3c55
No known key found for this signature in database
GPG Key ID: B7F13D981BBF1607
2 changed files with 6 additions and 6 deletions

View File

@ -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
/*

View File

@ -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