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 | 4b640bb161bdcaf092c1445700b0a3b5a7c89b6f (patch) | |
tree | 05038b1c3a26e4024c8c4ad95ed9096c97026de1 | |
parent | 534b0bc77178a689bf334a3bb339fc8c08e3fd83 (diff) | |
download | prosody-4b640bb161bdcaf092c1445700b0a3b5a7c89b6f.tar.gz prosody-4b640bb161bdcaf092c1445700b0a3b5a7c89b6f.zip |
util.pposix: Put the warning back, mention how we might still use posix_fallocate()
-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) |