summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-05-01 16:12:06 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-01 16:12:06 -0600
commit7b989f34191302011b5b49bf5b26b36862d54056 (patch)
treed625fd620008d15852ed82993f27b37138647e6f
parent10a5903db84cdb741472f895af5efa84c9a14c8e (diff)
test/eeed8b54e0df-test: define RWF_NOWAIT if we don't have it
Older installs/distros don't have this in fs.h. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/eeed8b54e0df-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/eeed8b54e0df-test.c b/test/eeed8b54e0df-test.c
index 17018a2..9083d3e 100644
--- a/test/eeed8b54e0df-test.c
+++ b/test/eeed8b54e0df-test.c
@@ -13,6 +13,10 @@
#define BLOCK 4096
+#ifndef RWF_NOWAIT
+#define RWF_NOWAIT 8
+#endif
+
static int get_file_fd(void)
{
ssize_t ret;