Ver código fonte

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.
Sebastian Valle 7 anos atrás
pai
commit
335715309c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      unix.c

+ 1 - 1
unix.c

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