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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
unix.c
View file

@ -51,7 +51,7 @@
#endif
#ifdef HAS_POLL
#include <sys/poll.h>
#include <poll.h>
#endif
#ifndef HAS_SOCKLEN_T