Use <poll.h> instead of <sys/poll.h>

The former should be used according to POSIX, otherwise it causes
bunches of warnings when compiling for musl-based distros like Alpine
Linux.
This commit is contained in:
DDoSolitary
2019-04-28 08:09:22 +08:00
committed by Simon Kelley
parent 29ae308398
commit 8e3a5cba8b

View File

@@ -95,7 +95,11 @@ typedef unsigned long long u64;
#if defined(HAVE_SOLARIS_NETWORK)
# include <sys/sockio.h>
#endif
#include <sys/poll.h>
#if defined(HAVE_POLL_H)
# include <poll.h>
#else
# include <sys/poll.h>
#endif
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/un.h>