diff options
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/pposix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index 7600766f..7dd8708b 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -664,6 +664,7 @@ int lc_fallocate(lua_State* L) #if defined(_GNU_SOURCE) if(fallocate(fileno(f), FALLOC_FL_KEEP_SIZE, offset, len) != 0) #elif _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L +#warning Using posix_fallocate() fallback. Linux fallocate() is strongly recommended if available: recompile with -D_GNU_SOURCE if(posix_fallocate(fileno(f), offset, len) != 0) #endif { |