aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-29 22:21:58 +0200
committerKim Alvefur <zash@zash.se>2012-07-29 22:21:58 +0200
commitdbfa0c8ce730075cca0ebbc1299b98708be75978 (patch)
treea5863122890fd89febdd61fb5fc7e6b92653719d /util-src
parentce55d30151488cfcf77679781ac6bf22e4e52813 (diff)
downloadprosody-dbfa0c8ce730075cca0ebbc1299b98708be75978.tar.gz
prosody-dbfa0c8ce730075cca0ebbc1299b98708be75978.zip
util.pposix: Warn about posix_fallocate
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c1
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
{