summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/os.h b/os/os.h
index 1d400c8f..afee9f9c 100644
--- a/os/os.h
+++ b/os/os.h
@@ -361,4 +361,12 @@ static inline int shm_attach_to_open_removed(void)
}
#endif
+#ifndef FIO_HAVE_NATIVE_FALLOCATE
+static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len)
+{
+ errno = ENOSYS;
+ return false;
+}
+#endif
+
#endif