aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-01 20:14:32 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-01 20:14:32 +0400
commit9d703560099beea2b2b53c533e7f71dc926293b2 (patch)
treed60df5c9d3f7dbb9931dc1243362d1808f1ff459 /src/util.c
parent7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (diff)
downloadrspamd-9d703560099beea2b2b53c533e7f71dc926293b2.tar.gz
rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.zip
Separate librspamdserver API from plugins and workers functions.
Make tests compileable again.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 5fcf0858b..e7fe474ad 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1335,8 +1335,8 @@ rspamd_strtoul (const gchar *s, gsize len, gulong *value)
gint
rspamd_fallocate (gint fd, off_t offset, off_t len)
{
-#if defined(HAVE_FALLOCATE) && defined(FALLOC_FL_KEEP_SIZE)
- return fallocate (fd, FALLOC_FL_KEEP_SIZE, offset, len);
+#if defined(HAVE_FALLOCATE)
+ return fallocate (fd, 0, offset, len);
#elif defined(HAVE_POSIX_FALLOCATE)
return posix_fallocate (fd, offset, len);
#else