projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b1cd5
)
util.pposix: Put the warning back, mention how we might still use posix_fallocate()
author
Kim Alvefur
<zash@zash.se>
Tue, 31 Jul 2012 21:43:34 +0000
(23:43 +0200)
committer
Kim Alvefur
<zash@zash.se>
Tue, 31 Jul 2012 21:43:34 +0000
(23:43 +0200)
util-src/pposix.c
patch
|
blob
|
history
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index bda13ec020616dcb7b10231ab71d48fa6a9d3671..191e276ee1bc4576603feae2451924547bf5606d 100644
(file)
--- 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)