aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-29 20:35:00 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-29 20:35:00 +0400
commit4c4773d96b1b2a157009590908fce032696281c5 (patch)
treec9709f5a21b4eafbfee04327884cb5c6d39006e4 /src/filter.c
parent513e304bc6255492eee5c78c97d222037087f429 (diff)
downloadrspamd-4c4773d96b1b2a157009590908fce032696281c5.tar.gz
rspamd-4c4773d96b1b2a157009590908fce032696281c5.zip
* Fix build under CentOS 5 with old glib 2.12
* Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR Rework include style.
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c
index 4bf5a5637..17dc6aa60 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -675,6 +675,7 @@ process_statfiles (struct worker_task *task)
static void
insert_metric_header (gpointer metric_name, gpointer metric_value, gpointer data)
{
+#ifndef GLIB_HASH_COMPAT
struct worker_task *task = (struct worker_task *)data;
gint r = 0;
/* Try to be rfc2822 compatible and avoid long headers with folding */
@@ -713,6 +714,7 @@ insert_metric_header (gpointer metric_name, gpointer metric_value, gpointer data
g_mime_message_add_header (task->message, header_name, outbuf);
#endif
+#endif /* GLIB_COMPAT */
}
void