From 68db8b90631245264d74e5343f7d555c61645494 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sun, 30 Nov 2008 14:10:41 +0100 Subject: [PATCH] Handle when O_DIRECT is not available --- debug/sorter/radix-asio-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debug/sorter/radix-asio-test.c b/debug/sorter/radix-asio-test.c index 168f6ff6..a108ed0c 100644 --- a/debug/sorter/radix-asio-test.c +++ b/debug/sorter/radix-asio-test.c @@ -16,7 +16,11 @@ #include #define COPY +#ifdef O_DIRECT #define DIRECT O_DIRECT +#else +#define DIRECT 0 // Direct IO not supported, fallback to normal mode +#endif static timestamp_t timer; -- 2.39.5