cmake: mark the compression tests as slow
[folly.git] / folly / ClockGettimeWrappers.cpp
index 24247d2dbafa862ad99b3465a5b00ff201b18c75..2fe4611439bd4ed841c9008e7a97351a1bc95f56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2016-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -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 {
 
@@ -82,8 +82,8 @@ struct VdsoInitializer {
 };
 
 static const VdsoInitializer vdso_initializer;
-}
+} // namespace
 
 #endif
-}
-}
+} // namespace chrono
+} // namespace folly