From e2445d4071c05df2d0558b8fcf9616aeb73a4810 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Apr 2015 19:07:47 +0200 Subject: fixed for missing g_spawn_check_exit_status and strcasecmp --- src/worker.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/worker.c b/src/worker.c index 75eb779..3ae7672 100644 --- a/src/worker.c +++ b/src/worker.c @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -203,6 +204,7 @@ static void watch_child( GPid pid, gint status, gpointer *data ) GError *error = NULL; char *exit_message = ""; +#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_34 if( g_spawn_check_exit_status( status, &error ) ) { if( error != NULL ) { exit_message = error->message; @@ -211,6 +213,9 @@ static void watch_child( GPid pid, gint status, gpointer *data ) exit_message = ""; } } +#else + // TODO: do it in the old platform dependend way +#endif printf( "Worker child with PID " PRIgid " terminated with status %d: %s.\n", wed->pid, status, exit_message ); -- cgit v1.2.3-54-g00ecf