aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-05 15:59:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-20 14:07:20 +0000
commita2b42c80372e028c4f083147c1031fe14d89795d (patch)
treeed821a6a48d61ad2ebe9257e62b80878753ac155
parentb23093f6f4f7363cff26770e88ffc805f284c2b3 (diff)
downloadrspamd-1.6.tar.gz
rspamd-1.6.zip
[Fix] Add definition for old glib compatibility methodrspamd-1.6
Issue: #1956, #1978
-rw-r--r--src/libutil/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index 7f6ccc2f6..81d29e688 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -190,6 +190,10 @@ void g_queue_free_full (GQueue *queue, GDestroyNotify free_func);
#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 40))
void g_ptr_array_insert (GPtrArray *array, gint index_, gpointer data);
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 30))
+GPtrArray* g_ptr_array_new_full (guint reserved_size,
+ GDestroyNotify element_free_func);
+#endif
/*
* Convert milliseconds to timeval fields