From 0d0db609590307ecae03627ac55265597d4a0ca0 Mon Sep 17 00:00:00 2001 From: Tobias Nygren Date: Fri, 16 Oct 2015 18:46:26 +0200 Subject: [PATCH] gio/gtestdbus.c: don't use non-standard %m printf modifier https://bugzilla.gnome.org/show_bug.cgi?id=756706 --- gio/gtestdbus.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c index 295c1ea23..588bcfae7 100644 --- a/gio/gtestdbus.c +++ b/gio/gtestdbus.c @@ -24,6 +24,8 @@ #include #include +#include +#include #include #ifdef G_OS_UNIX #include @@ -243,14 +245,14 @@ watcher_init (void) /* fork a child to clean up when we are killed */ if (pipe (pipe_fds) != 0) { - g_warning ("pipe() failed: %m"); + g_warning ("pipe() failed: %s", strerror (errno)); g_assert_not_reached (); } switch (fork ()) { case -1: - g_warning ("fork() failed: %m"); + g_warning ("fork() failed: %s", strerror (errno)); g_assert_not_reached (); break;