mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
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:
parent
5ed16e6a7a
commit
aa573c3c55
@ -24,10 +24,10 @@
|
|||||||
|
|
||||||
#include "curl_setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_POLL_H
|
#ifdef HAVE_POLL_H
|
||||||
#include <sys/poll.h>
|
|
||||||
#elif defined(HAVE_POLL_H)
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
#elif defined(HAVE_SYS_POLL_H)
|
||||||
|
#include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
# include <sys/select.h>
|
# include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_POLL_H
|
#ifdef HAVE_POLL_H
|
||||||
# include <sys/poll.h>
|
|
||||||
#elif defined(HAVE_POLL_H)
|
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
|
#elif defined(HAVE_SYS_POLL_H)
|
||||||
|
# include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSDOS
|
#ifdef MSDOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user