summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-14 15:01:18 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-14 15:01:18 +0300
commit7072f8548414cf0e88babd7556f1f893c93ba3dc (patch)
tree5f2d81895262e14a5312f62f99aa5640c0742924 /src/util.c
parentcb60d35f154aba2d931b0734b0cae9f728278a9c (diff)
downloadrspamd-7072f8548414cf0e88babd7556f1f893c93ba3dc.tar.gz
rspamd-7072f8548414cf0e88babd7556f1f893c93ba3dc.zip
Add another workaround for CentOS.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 2efd8f0d5..dea3976f1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1124,6 +1124,17 @@ g_ptr_array_unref (GPtrArray *array)
g_ptr_array_free (array, TRUE);
}
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 14))
+void
+g_queue_clear (GQueue *queue)
+{
+ g_return_if_fail (queue != NULL);
+
+ g_list_free (queue->head);
+ queue->head = queue->tail = NULL;
+ queue->length = 0;
+}
+#endif
gsize
rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz)