From 4b640bb161bdcaf092c1445700b0a3b5a7c89b6f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 31 Jul 2012 23:43:34 +0200 Subject: util.pposix: Put the warning back, mention how we might still use posix_fallocate() --- util-src/pposix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util-src') 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) -- cgit v1.2.3