[libcxx] r216997 - Fix build breakage introduced in r216949

Jonathan Roelofs jonathan at codesourcery.com
Tue Sep 2 16:49:16 PDT 2014


Author: jroelofs
Date: Tue Sep  2 18:49:15 2014
New Revision: 216997

URL: http://llvm.org/viewvc/llvm-project?rev=216997&view=rev
Log:
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

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=216997&r1=216996&r2=216997&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Tue Sep  2 18:49:15 2014
@@ -653,8 +653,8 @@ template <unsigned> struct __static_asse
 #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
 





More information about the cfe-commits mailing list