aboutsummaryrefslogtreecommitdiffhomepage
path: root/unix.c
diff options
context:
space:
mode:
authorSebastian Valle <[email protected]>2018-09-10 22:46:13 -0500
committerGitHub <[email protected]>2018-09-10 22:46:13 -0500
commit335715309c873cf528f477577f3ecf1c6f987350 (patch)
treef1c0bea4d2b93ec5dcac07f606a8e47315ba58b1 /unix.c
parent2e1c6bceeab0bc2b3d18fc7d7253f9b8bf6cb963 (diff)
downloadenet-335715309c873cf528f477577f3ecf1c6f987350.tar.gz
enet-335715309c873cf528f477577f3ecf1c6f987350.zip
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.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index c36a082..4fa6287 100644
--- a/unix.c
+++ b/unix.c
@@ -51,7 +51,7 @@
#endif
#ifdef HAS_POLL
-#include <sys/poll.h>
+#include <poll.h>
#endif
#ifndef HAS_SOCKLEN_T