diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-09 19:14:37 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-09 19:14:37 +0200 |
commit | abc3d8fec7e21f01890f2f862ae6fc799e8e9df6 (patch) | |
tree | 13a7d61beaea595844171ba933e9c4bdb710660b | |
parent | e2445d4071c05df2d0558b8fcf9616aeb73a4810 (diff) | |
download | biruda-abc3d8fec7e21f01890f2f862ae6fc799e8e9df6.tar.gz biruda-abc3d8fec7e21f01890f2f862ae6fc799e8e9df6.tar.bz2 |
.
-rw-r--r-- | src/worker.c | 4 |
1 files 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 = "<unknown error>"; -#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; |