mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
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:
parent
2e1c6bceea
commit
335715309c
1 changed files with 1 additions and 1 deletions
2
unix.c
2
unix.c
|
@ -51,7 +51,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAS_POLL
|
||||
#include <sys/poll.h>
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAS_SOCKLEN_T
|
||||
|
|
Loading…
Reference in a new issue