Merge "Fix mac sdk build."

This commit is contained in:
Christopher Ferris 2015-03-24 04:55:36 +00:00 committed by Gerrit Code Review
commit 8e1697e752
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ extern "C" {
#if !defined(_WIN32) #if !defined(_WIN32)
#include <pthread.h> #include <pthread.h>
#include <sys/types.h>
typedef struct { typedef struct {
pthread_mutex_t lock; pthread_mutex_t lock;

View file

@ -21,6 +21,8 @@
// For gettid. // For gettid.
#if defined(__APPLE__) #if defined(__APPLE__)
#include "AvailabilityMacros.h" // For MAC_OS_X_VERSION_MAX_ALLOWED #include "AvailabilityMacros.h" // For MAC_OS_X_VERSION_MAX_ALLOWED
#include <stdint.h>
#include <stdlib.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>