diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c
index 752081ea9aaee77ed99e74938cf4e6acda79312e..8f4e9da46c9de0eca4bfb6adaca9bba8fef3e7c9 100644
--- a/vp8/decoder/threading.c
+++ b/vp8/decoder/threading.c
@@ -12,6 +12,9 @@
 #ifndef WIN32
 # include <unistd.h>
 #endif
+#ifdef __APPLE__
+#include <mach/mach_init.h>
+#endif
 #include "onyxd_int.h"
 #include "vpx_mem/vpx_mem.h"
 #include "threading.h"