diff --git a/libcxx/src/chrono.cpp b/libcxx/src/chrono.cpp index 096fce3cdd285..13b375947b4d9 100644 --- a/libcxx/src/chrono.cpp +++ b/libcxx/src/chrono.cpp @@ -31,7 +31,7 @@ # include // for gettimeofday and timeval #endif -#if !defined(__APPLE__) && _POSIX_TIMERS > 0 +#if !defined(__APPLE__) && defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 # define _LIBCPP_USE_CLOCK_GETTIME #endif