Fix compilation on Linux systems without vDSO support
[folly.git] / folly / ClockGettimeWrappers.cpp
index 9d35e038cc0bb4a7a411e5ea4bda6b8b711ebf59..96f572ff661c194d151d5688148a6be4ce3fc4f0 100644 (file)
@@ -48,7 +48,7 @@ static int64_t clock_gettime_ns_fallback(clockid_t clock) {
 int (*clock_gettime)(clockid_t, timespec* ts) = &::clock_gettime;
 int64_t (*clock_gettime_ns)(clockid_t) = &clock_gettime_ns_fallback;
 
-#ifdef __linux__
+#ifdef FOLLY_HAVE_LINUX_VDSO
 
 namespace {