Unverified Commit aa573c3c authored by Marcel Raad's avatar Marcel Raad
Browse files

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
parent 5ed16e6a
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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


/*
/*
+3 −3
Original line number Original line Diff line number Diff line
@@ -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