diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp
index 0187e39..28a5348 100644
--- a/src/AudioIO.cpp
+++ b/src/AudioIO.cpp
@@ -427,6 +427,7 @@ time warp info and AudioIOListener and whether the playback is looped.
 #include <math.h>
 #include <stdlib.h>
 #include <algorithm>
+#include <sys/time.h>
 
 #ifdef __WXMSW__
 #include <malloc.h>