diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-09-02 23:49:15 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-09-02 23:49:15 +0000 |
commit | bb8fd4ccdb9d1c11c0c98840af21a24c27a90f15 (patch) | |
tree | 21acf1e77ca997f46f52b14886862d1d61caaf5b | |
parent | 186e7d1700678fbdfdf16019c74a69ef5a9ca531 (diff) | |
download | bcm5719-llvm-bb8fd4ccdb9d1c11c0c98840af21a24c27a90f15.tar.gz bcm5719-llvm-bb8fd4ccdb9d1c11c0c98840af21a24c27a90f15.zip |
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
llvm-svn: 216997
-rw-r--r-- | libcxx/include/__config | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index 5bb55fa10a2..ab066d88993 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -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 |