[virt-tools-list] [PATCH] Add G_SOURCE_REMOVE to vir-glib-compat

Fabiano Fidêncio fidencio at redhat.com
Wed Mar 11 10:14:33 UTC 2015


G_SOURCE_REMOVE was introduced in GLib 2.32 and has its value defined as
FALSE.
---
 src/virt-glib-compat.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/virt-glib-compat.h b/src/virt-glib-compat.h
index 37b6f61..4103621 100644
--- a/src/virt-glib-compat.h
+++ b/src/virt-glib-compat.h
@@ -71,6 +71,10 @@ G_BEGIN_DECLS
 GByteArray *g_byte_array_new_take (guint8 *data, gsize len);
 #endif
 
+#if !GLIB_CHECK_VERSION(2,32,0)
+#define G_SOURCE_REMOVE FALSE;
+#endif
+
 G_END_DECLS
 
 #endif // _VIRT_GLIB_COMPAT_H
-- 
2.3.1




More information about the virt-tools-list mailing list