[libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS

Differential Revision: https://reviews.llvm.org/D104372

NOKEYCHECK=True
GitOrigin-RevId: d7550e5d105f998ea34bd6c51c03d37a8c546025
diff --git a/src/chrono.cpp b/src/chrono.cpp
index 096fce3..13b3759 100644
--- a/src/chrono.cpp
+++ b/src/chrono.cpp
@@ -31,7 +31,7 @@
 # include <sys/time.h> // 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