From 0991323677f8fc69a96825582b3e58577e35c3ab 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@216975 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/__config b/include/__config index 2eb9e55f..6347b51f 100644 --- a/include/__config +++ b/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