fio: refactor fallocate defines
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index afee9f9c65456fb5e50ac5139eb6fc398d6a24f3..2e1552914cd2fa9593230e14e6e68edeeafcc02c 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -369,4 +369,8 @@ static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t l
 }
 #endif
 
+#if defined(CONFIG_POSIX_FALLOCATE) || defined(FIO_HAVE_NATIVE_FALLOCATE)
+# define FIO_HAVE_ANY_FALLOCATE
+#endif
+
 #endif