apple: include proper mach primatives
authorJohn Koleszar <jkoleszar@google.com>
Thu, 29 Jul 2010 21:04:39 +0000 (17:04 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 29 Jul 2010 21:04:44 +0000 (17:04 -0400)
Fixes implicit declaration warning for 'mach_task_self'.

Patch courtesy of timeless at gmail.com

Change-Id: I9991dedd1ccfddc092eca86705ecbc3b764b799d

vp8/decoder/threading.c

index 752081e..8f4e9da 100644 (file)
@@ -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"