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>
Wed, 16 Mar 2011 17:59:32 +0000 (13:59 -0400)
Fixes implicit declaration warning for 'mach_task_self'. This change
is an update to Change I9991dedd1ccfddc092eca86705ecbc3b764b799d,
which fixed this issue for the decoder but not the encoder.

Change-Id: I9df033e81f9520c4f975b7a7cf6c643d12e87c96

vp8/common/threading.h
vp8/decoder/threading.c

index bfd4916..44eaf08 100644 (file)
@@ -38,6 +38,7 @@
 #define pthread_self() GetCurrentThreadId()
 #else
 #ifdef __APPLE__
+#include <mach/mach_init.h>
 #include <mach/semaphore.h>
 #include <mach/task.h>
 #include <time.h>
index 314a8d7..67e578c 100644 (file)
@@ -12,9 +12,6 @@
 #if !defined(WIN32) && CONFIG_OS_SUPPORT == 1
 # include <unistd.h>
 #endif
-#ifdef __APPLE__
-#include <mach/mach_init.h>
-#endif
 #include "onyxd_int.h"
 #include "vpx_mem/vpx_mem.h"
 #include "vp8/common/threading.h"