diff --git a/libavdevice/audio.c b/libavdevice/audio.c
index 8520a5f3ea7c5b1e792cc78a45af828793f825a1..d056711d03d69ae7c517dd3f5fe3600c35494c04 100644
--- a/libavdevice/audio.c
+++ b/libavdevice/audio.c
@@ -34,6 +34,7 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
+#include <sys/select.h>
 
 #include "libavutil/log.h"
 #include "libavcodec/avcodec.h"