[PATCH] Remember to define OS_O_DIRECT to OS type if available
[fio.git] / os.h
diff --git a/os.h b/os.h
index 1160f44c435c967625c152829f889b5bcbd5951d..1bce2f64028324d7b1e982ce8c1d42305cb31ec5 100644 (file)
--- a/os.h
+++ b/os.h
@@ -42,7 +42,9 @@
 #endif
 
 #ifndef FIO_HAVE_ODIRECT
 #endif
 
 #ifndef FIO_HAVE_ODIRECT
-#define OS_O_DIRECT                    (0)
+#define OS_O_DIRECT                    0
+#else
+#define OS_O_DIRECT                    O_DIRECT
 #endif
 
 struct thread_data;
 #endif
 
 struct thread_data;