Update all Windows files except dobuild.cmd to use LF line endings
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index ef9f91f523b6f7c15ebe7871b717c96c9ef61a8c..ce331601eafe9fdb5a22303031551ee1607aac2a 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -125,7 +125,11 @@ typedef unsigned long os_cpu_mask_t;
 #endif
 
 #ifndef FIO_PREFERRED_CLOCK_SOURCE
+#ifdef CONFIG_CLOCK_GETTIME
 #define FIO_PREFERRED_CLOCK_SOURCE     CS_CGETTIME
+#else
+#define FIO_PREFERRED_CLOCK_SOURCE     CS_GTOD
+#endif
 #endif
 
 #ifndef FIO_MAX_JOBS