fio: refactor fallocate defines
[fio.git] / init.c
diff --git a/init.c b/init.c
index 52560ed34ab59a28ad6a1825068f58e75496bea0..42e710715a250e2eca8f2a6a8cd7c609e6571455 100644 (file)
--- a/init.c
+++ b/init.c
@@ -781,8 +781,8 @@ static int fixup_options(struct thread_data *td)
                        o->unit_base = 8;
        }
 
                        o->unit_base = 8;
        }
 
-#if !defined(CONFIG_POSIX_FALLOCATE) && !defined(FIO_HAVE_NATIVE_FALLOCATE)
-       /* Platform doesn't support fallocate so force set it to none */
+#ifndef FIO_HAVE_ANY_FALLOCATE
+       /* Platform doesn't support any fallocate so force it to none */
        o->fallocate_mode = FIO_FALLOCATE_NONE;
 #endif
 
        o->fallocate_mode = FIO_FALLOCATE_NONE;
 #endif