--- a/src/dav_fuse.c
+++ b/src/dav_fuse.c
@@ -48,6 +48,8 @@
#include <sys/stat.h>
#endif
+#include <sys/select.h>
+
#include "defaults.h"
#include "mount_davfs.h"
#include "cache.h"