aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util-src/pposix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index bda13ec0..191e276e 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -674,6 +674,10 @@ int lc_fallocate(lua_State* L)
lua_pushstring(L, strerror(errno));
return 2;
}
+#else
+#warning Only using posix_fallocate() fallback.
+#warning Linux fallocate() is strongly recommended if available: recompile with -D_GNU_SOURCE
+#warning Note that posix_fallocate() will still be used on filesystems that dont support fallocate()
#endif
if(posix_fallocate(fileno(f), offset, len) == 0)