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 authored and Simon Kelley committed 2020-02-11 21:21:24 +00:00
1 parent 29ae308398
commit 8e3a5cba8b
1 file changed
+5 -1
+5 -1
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>