--- libmpdclient-2.8.orig/src/sync.c	2010-01-01 15:17:56.000000000 +0100
+++ libmpdclient-2.8/src/sync.c	2013-09-18 11:04:49.000000000 +0200
@@ -34,6 +34,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
+#include <time.h>
+#include <sys/select.h>
 #include <unistd.h>
 
 static bool