summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-07-29 17:04:39 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-03-16 13:59:32 -0400
commitde50520a8c88afa53679a2dd6c77d5be54503436 (patch)
tree3a1e546c8668f3fafc4bdce037b89a425a792d41
parent346b3e7ce916d3bb99fa9e5551f2c44394af565c (diff)
downloadlibvpx-de50520a8c88afa53679a2dd6c77d5be54503436.tar
libvpx-de50520a8c88afa53679a2dd6c77d5be54503436.tar.gz
libvpx-de50520a8c88afa53679a2dd6c77d5be54503436.tar.bz2
libvpx-de50520a8c88afa53679a2dd6c77d5be54503436.zip
apple: include proper mach primatives
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
-rw-r--r--vp8/common/threading.h1
-rw-r--r--vp8/decoder/threading.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/vp8/common/threading.h b/vp8/common/threading.h
index bfd4916c6..44eaf0800 100644
--- a/vp8/common/threading.h
+++ b/vp8/common/threading.h
@@ -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>
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c
index 314a8d7fd..67e578c62 100644
--- a/vp8/decoder/threading.c
+++ b/vp8/decoder/threading.c
@@ -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"