From f4bc679cad1d1d6b7b4feadb36476ed1e40ba5c8 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs Date: Tue, 2 Sep 2014 21:56:01 +0000 Subject: [PATCH] Don't #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK on __APPLE__ This fixes PR20839, which was a bug in r216949. llvm-svn: 216975 --- libcxx/include/__config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcxx/include/__config b/libcxx/include/__config index 2eb9e55f9c19..6347b51fa32e 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -650,8 +650,9 @@ template struct __static_assert_check {}; # define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1 #endif -#if (!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \ - (!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0) +#if !defined(__APPLE__) && \ + ((!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \ + (!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0)) #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK #endif