forked from Mirrors/flatpak-builder
utils: Fix support for old glib without g_autoptr
parent
fbca999cc9
commit
e6a85a7fdd
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "libglnx/libglnx.h"
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
#include <libsoup/soup.h>
|
||||
#include "flatpak-dbus.h"
|
||||
#include "flatpak-dir.h"
|
||||
|
@ -374,6 +375,10 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (SoupRequest, g_object_unref)
|
|||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SoupURI, soup_uri_free)
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 43, 4)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixFDList, g_object_unref)
|
||||
#endif
|
||||
|
||||
/* This uses a weird Auto prefix to avoid conflicts with later added autogenerated autoptr support, per:
|
||||
* https://git.gnome.org/browse/glib/commit/?id=1c6cd5f0a3104aa9b62c7f1d3086181f63e71b59
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue