Просмотр исходного кода

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 лет назад
Родитель
Сommit
335715309c
1 измененных файлов с 1 добавлено и 1 удалено
  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