diff options
author | Kim Alvefur <zash@zash.se> | 2012-07-31 23:43:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-07-31 23:43:34 +0200 |
commit | 56c30635ccf2c210fbb37e83e28f7d956dc6c74f (patch) | |
tree | 05038b1c3a26e4024c8c4ad95ed9096c97026de1 /util-src | |
parent | 4c936ac70e7c1dc93631d4fe86e41a78a7c3d900 (diff) | |
download | prosody-56c30635ccf2c210fbb37e83e28f7d956dc6c74f.tar.gz prosody-56c30635ccf2c210fbb37e83e28f7d956dc6c74f.zip |
util.pposix: Put the warning back, mention how we might still use posix_fallocate()
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/pposix.c | 4 |
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) |