Fix build breakage introduced in r216949

The bug shows up on systems that `#define _POSIX_CLOCK_MONOTONIC 0` to indicate
that users of CLOCK_MONOTONIC must check sysconf at runtime.

See: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@216997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jonathan Roelofs 2014-09-02 23:49:15 +00:00
parent 497f912ab2
commit 7d7b9944b2

View File

@ -653,8 +653,8 @@ template <unsigned> struct __static_assert_check {};
#endif
#if !defined(__APPLE__) && \
((!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \
(!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0))
((!defined(_POSIX_TIMERS) || _POSIX_TIMERS < 0) || \
(!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0))
#define _LIBCPP_HAS_NO_MONOTONIC_CLOCK
#endif