aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-05 15:59:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-05 15:59:05 +0000
commitb237435ed7a56e8641f9d0c01b8f0565023249a0 (patch)
treeeaabd298360aa3435b2652baa8b8e4fc0a852a3a /src/libutil/util.h
parent077d9b3c2f22dd2d4e66971e999dc01ac2fa2b44 (diff)
downloadrspamd-b237435ed7a56e8641f9d0c01b8f0565023249a0.tar.gz
rspamd-b237435ed7a56e8641f9d0c01b8f0565023249a0.zip
[Fix] Add definition for old glib compatibility method
Issue: #1956, #1978
Diffstat (limited to 'src/libutil/util.h')
-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 ab677210e..a1b4f95bb 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