mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-02 20:16:52 +02:00
win32: make gio/tests/gdbus-proxy.c compile
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
This commit is contained in:
parent
75d2c1823c
commit
d9e8feae7c
@ -735,6 +735,7 @@ test_basic (GDBusProxy *proxy)
|
|||||||
static void
|
static void
|
||||||
kill_test_service (GDBusConnection *connection)
|
kill_test_service (GDBusConnection *connection)
|
||||||
{
|
{
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
guint pid;
|
guint pid;
|
||||||
GVariant *ret;
|
GVariant *ret;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
@ -754,6 +755,9 @@ kill_test_service (GDBusConnection *connection)
|
|||||||
g_variant_get (ret, "(u)", &pid);
|
g_variant_get (ret, "(u)", &pid);
|
||||||
g_variant_unref (ret);
|
g_variant_unref (ret);
|
||||||
kill (pid, SIGTERM);
|
kill (pid, SIGTERM);
|
||||||
|
#else
|
||||||
|
g_warning ("Can't kill com.example.TestService");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user