Use <poll.h> instead of <sys/poll.h> in unix.c

<poll.h> is the correct POSIX header according to the POSIX standard. Some targets (like homebrew for the Nintendo Switch) do not provide a <sys/poll.h> so it makes compiling for them rather hard.
This commit is contained in:
Sebastian Valle
2018-09-10 22:46:13 -05:00
committed by GitHub
parent 2e1c6bceea
commit 335715309c
+1 -1
View File
@@ -51,7 +51,7 @@
#endif
#ifdef HAS_POLL
#include <sys/poll.h>
#include <poll.h>
#endif
#ifndef HAS_SOCKLEN_T