--- a/cddb.c
+++ b/cddb.c
@@ -29,6 +29,7 @@
 
 #include <netdb.h>
 #include <netinet/in.h>
+#include <sys/select.h>
 #include <sys/socket.h>
 #include <pwd.h>
 #include <dirent.h>
