Merge branch 'master' into gfio
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 16e18b211b910f3db2a0b036c7918490745e8919..755a4d523285836b2eab8d9a9f34765569118d62 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -42,6 +42,10 @@ int main(int argc, char *argv[], char *envp[])
        if (initialize_fio(envp))
                return 1;
 
+#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME)
+#error "No available clock source!"
+#endif
+
        if (parse_options(argc, argv))
                return 1;