Index: src/core/poll_manager.cc
--- src/core/poll_manager.cc.orig
+++ src/core/poll_manager.cc
@@ -38,6 +38,7 @@
 
 #include <stdexcept>
 #include <unistd.h>
+#include <sys/select.h>
 #include <torrent/exceptions.h>
 #include <torrent/poll_epoll.h>
 #include <torrent/poll_kqueue.h>
