Explorar el Código

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 hace 7 años
padre
commit
335715309c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      unix.c

+ 1 - 1
unix.c

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