--- src/gdbserver/gdb-remote.c.orig
+++ src/gdbserver/gdb-remote.c
@@ -12,7 +12,7 @@
 #include <mingw.h>
 #else
 #include <unistd.h>
-#include <sys/poll.h>
+#include <poll.h>
 #endif
 
 static const char hex[] = "0123456789abcdef";
