diff options
author | Kim Alvefur <zash@zash.se> | 2012-07-29 22:21:58 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-07-29 22:21:58 +0200 |
commit | dbfa0c8ce730075cca0ebbc1299b98708be75978 (patch) | |
tree | a5863122890fd89febdd61fb5fc7e6b92653719d /util-src | |
parent | ce55d30151488cfcf77679781ac6bf22e4e52813 (diff) | |
download | prosody-dbfa0c8ce730075cca0ebbc1299b98708be75978.tar.gz prosody-dbfa0c8ce730075cca0ebbc1299b98708be75978.zip |
util.pposix: Warn about posix_fallocate
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 { |