diff --git a/gio/tests/gdbus-connection-slow.c b/gio/tests/gdbus-connection-slow.c index c9f4411fc..a0a7b9c21 100644 --- a/gio/tests/gdbus-connection-slow.c +++ b/gio/tests/gdbus-connection-slow.c @@ -25,7 +25,9 @@ #include #include +#ifdef HAVE_SYS_WAIT_H #include +#endif #include "gdbus-tests.h" @@ -95,8 +97,10 @@ test_connection_flush (void) &exit_status, &error); g_assert_no_error (error); +#ifdef HAVE_SYS_WAIT_H g_assert (WIFEXITED (exit_status)); g_assert_cmpint (WEXITSTATUS (exit_status), ==, 0); +#endif g_assert (ret); timeout_mainloop_id = g_timeout_add (1000, test_connection_flush_on_timeout, GUINT_TO_POINTER (n));