From fc3576f675185281ae868e40d8cd2ddb7c7a45a0 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 23 Mar 2015 21:35:56 -0700 Subject: [PATCH] Fix mac sdk build. Add include files for types and functions that were not included properly. Change-Id: I4849f5bdf535c6eec9254228cf980c30d11a5a1b --- include/cutils/threads.h | 1 + libcutils/threads.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/cutils/threads.h b/include/cutils/threads.h index bb9fdb858..3133cdb04 100644 --- a/include/cutils/threads.h +++ b/include/cutils/threads.h @@ -32,6 +32,7 @@ extern "C" { #if !defined(_WIN32) #include +#include typedef struct { pthread_mutex_t lock; diff --git a/libcutils/threads.c b/libcutils/threads.c index 940044199..5f5577b42 100644 --- a/libcutils/threads.c +++ b/libcutils/threads.c @@ -21,6 +21,8 @@ // For gettid. #if defined(__APPLE__) #include "AvailabilityMacros.h" // For MAC_OS_X_VERSION_MAX_ALLOWED +#include +#include #include #include #include