From b237435ed7a56e8641f9d0c01b8f0565023249a0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Jan 2018 15:59:05 +0000 Subject: [PATCH] [Fix] Add definition for old glib compatibility method Issue: #1956, #1978 --- src/libutil/util.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5