commit ec7fb8e18c9b92b55f714e6344a3f504183be8e5 Author: Nathaniel McCallum npmccallum@redhat.com Date: Mon Aug 15 16:57:57 2011 -0400
[glib] fix build on glib >= 2.29
src/verto-glib.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) --- diff --git a/src/verto-glib.c b/src/verto-glib.c index 32ce0cb..9f77964 100644 --- a/src/verto-glib.c +++ b/src/verto-glib.c @@ -29,7 +29,8 @@
#if GLIB_MAJOR_VERSION >= 2 #if GLIB_MINOR_VERSION >= 29 -#ifndef WIN32 /* Not supported on Windows */ +#ifdef G_OS_UNIX /* Not supported on Windows */ +#include <glib-unix.h> #define HAS_SIGNAL VERTO_EV_TYPE_SIGNAL #endif #endif /* GLIB_MINOR_VERSION >= 29 */ @@ -180,7 +181,7 @@ glib_ctx_add(void *ctx, const verto_ev *ev, verto_ev_flag *flags) case VERTO_EV_TYPE_SIGNAL: #if GLIB_MAJOR_VERSION >= 2 #if GLIB_MINOR_VERSION >= 29 -#ifndef WIN32 /* Not supported on Windows */ +#ifdef G_OS_UNIX /* Not supported on Windows */ gev->src = g_unix_signal_source_new(verto_get_signal(ev)); break; #endif
libverto-commits@lists.fedorahosted.org