From abc3d8fec7e21f01890f2f862ae6fc799e8e9df6 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Apr 2015 19:14:37 +0200 Subject: . --- src/worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worker.c b/src/worker.c index 3ae7672..287371a 100644 --- a/src/worker.c +++ b/src/worker.c @@ -202,9 +202,9 @@ static void watch_child( GPid pid, gint status, gpointer *data ) direct_glib_execution_worker_data_t *wed = (direct_glib_execution_worker_data_t *)data; worker_t *worker = wed->worker; - GError *error = NULL; char *exit_message = ""; -#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_34 +#if( GLIB_CHECK_VERSION( 2, 34, 0 ) ) + GError *error = NULL; if( g_spawn_check_exit_status( status, &error ) ) { if( error != NULL ) { exit_message = error->message; -- cgit v1.2.3-54-g00ecf