--- Source/WTF/wtf/Platform.h.orig 2015-01-06 13:30:52.000000000 -0800 +++ Source/WTF/wtf/Platform.h 2015-01-06 13:42:15.000000000 -0800 @@ -590,11 +590,14 @@ #if OS(DARWIN) +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 || PLATFORM(IOS) #define HAVE_DISPATCH_H 1 -#define HAVE_MADV_FREE 1 #define HAVE_MADV_FREE_REUSE 1 -#define HAVE_MERGESORT 1 #define HAVE_PTHREAD_SETNAME_NP 1 +#endif + +#define HAVE_MADV_FREE 1 +#define HAVE_MERGESORT 1 #define HAVE_READLINE 1 #define HAVE_SYS_TIMEB_H 1 #define WTF_USE_ACCELERATE 1