[glib/gdbus-daemon2: 2/8] Fix test building on win32



commit 234ddf131b43b0f99ce26489993dd0a13abb50ab
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Apr 19 18:11:47 2012 +0200

    Fix test building on win32

 gio/tests/gdbus-connection-slow.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-connection-slow.c b/gio/tests/gdbus-connection-slow.c
index c9f4411..a0a7b9c 100644
--- a/gio/tests/gdbus-connection-slow.c
+++ b/gio/tests/gdbus-connection-slow.c
@@ -25,7 +25,9 @@
 #include <string.h>
 
 #include <sys/types.h>
+#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
+#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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]