win32: make gio/tests/gdbus-proxy.c compile
authorDan Winship <danw@gnome.org>
Sun, 11 Nov 2012 16:21:07 +0000 (11:21 -0500)
committerDan Winship <danw@gnome.org>
Thu, 15 Nov 2012 19:19:06 +0000 (14:19 -0500)
win32 doesn't have kill(), so this won't even compile on Windows
unless that is ifdeffed out. The test probably still doesn't *work*,
but...

https://bugzilla.gnome.org/show_bug.cgi?id=688109

gio/tests/gdbus-proxy.c

index 28ac86c..2cf539b 100644 (file)
@@ -735,6 +735,7 @@ test_basic (GDBusProxy *proxy)
 static void
 kill_test_service (GDBusConnection *connection)
 {
+#ifdef G_OS_UNIX
   guint pid;
   GVariant *ret;
   GError *error = NULL;
@@ -754,6 +755,9 @@ kill_test_service (GDBusConnection *connection)
   g_variant_get (ret, "(u)", &pid);
   g_variant_unref (ret);
   kill (pid, SIGTERM);
+#else
+  g_warning ("Can't kill com.example.TestService");
+#endif
 }
 
 static void