[virt-tools-list] [virt-viewer][PATCH 3/6] glib-compat: Add g_mutex_new()
Christophe Fergeau
cfergeau at redhat.com
Fri Jul 17 16:17:27 UTC 2015
On Fri, Jul 17, 2015 at 04:01:20PM +0200, Fabiano Fidêncio wrote:
> Related to: rhbz#1243228
> ---
> 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 2c887e9..17c33f0 100644
> --- a/src/virt-glib-compat.h
> +++ b/src/virt-glib-compat.h
> @@ -76,6 +76,10 @@ GByteArray *g_byte_array_new_take (guint8 *data, gsize len);
> #define G_SOURCE_REMOVE FALSE
> #endif
>
> +#if GLIB_CHECK_VERSION(2, 31, 0)
> +#define g_mutex_new() g_new0(GMutex, 1)
> +#endif
> +
ACK
> G_END_DECLS
>
> #endif // _VIRT_GLIB_COMPAT_H
> --
> 2.4.4
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20150717/99e6edfe/attachment.sig>
More information about the virt-tools-list
mailing list