[PATCH] Remember to define OS_O_DIRECT to OS type if available
authorJens Axboe <axboe@suse.de>
Thu, 8 Jun 2006 11:26:31 +0000 (13:26 +0200)
committerJens Axboe <axboe@suse.de>
Thu, 8 Jun 2006 11:26:31 +0000 (13:26 +0200)
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;