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