aboutsummaryrefslogtreecommitdiffstats
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
commit8578efc0b92626d53535ff04d146b050a50a61da (patch)
treea5863122890fd89febdd61fb5fc7e6b92653719d
parent1c23a9b7a0b120e6e6561cd0546d53eaf0457da6 (diff)
downloadprosody-8578efc0b92626d53535ff04d146b050a50a61da.tar.gz
prosody-8578efc0b92626d53535ff04d146b050a50a61da.zip
util.pposix: Warn about posix_fallocate
-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
{