summaryrefslogtreecommitdiff
path: root/test/dbus-daemon-eavesdrop.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-12 10:45:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-12 10:45:15 +0100
commit74868224e487be6263d3eaa94c752273b4adb144 (patch)
treefbaa58d936550d7edd1d1d54972037597ea3111c /test/dbus-daemon-eavesdrop.c
parent39e3866c0ab0655c486a239cac816aa9f5de0862 (diff)
downloaddbus-74868224e487be6263d3eaa94c752273b4adb144.tar.gz
dbus-daemon-eavesdrop test: apply the same Windows fixes as dbus-daemon test
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40003
Diffstat (limited to 'test/dbus-daemon-eavesdrop.c')
-rw-r--r--test/dbus-daemon-eavesdrop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dbus-daemon-eavesdrop.c b/test/dbus-daemon-eavesdrop.c
index 6819ec13..4f5eee26 100644
--- a/test/dbus-daemon-eavesdrop.c
+++ b/test/dbus-daemon-eavesdrop.c
@@ -35,6 +35,7 @@
#include <string.h>
#ifdef DBUS_WIN
+# include <io.h>
# include <windows.h>
#else
# include <signal.h>
@@ -73,7 +74,7 @@ typedef struct {
DBusError e;
GError *ge;
- gint daemon_pid;
+ GPid daemon_pid;
/* eavedrop keyword tests */
DBusConnection *sender;
@@ -102,7 +103,7 @@ _assert_no_error (const DBusError *e,
static gchar *
spawn_dbus_daemon (gchar *binary,
gchar *configuration,
- gint *daemon_pid)
+ GPid *daemon_pid)
{
GError *error = NULL;
GString *address;