summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-spawn-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-spawn-win.c')
-rw-r--r--dbus/dbus-spawn-win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c
index 4e2365a2..138db6c7 100644
--- a/dbus/dbus-spawn-win.c
+++ b/dbus/dbus-spawn-win.c
@@ -444,7 +444,11 @@ static unsigned __stdcall
babysitter (void *parameter)
{
DBusBabysitter *sitter = (DBusBabysitter *) parameter;
+#ifdef ENABLE_DBUSSOCKET
DBusSocket *sock;
+#else
+ int fd;
+#endif
PING();
_dbus_babysitter_ref (sitter);
@@ -499,8 +503,12 @@ babysitter (void *parameter)
#endif
PING();
+#ifdef ENABLE_DBUSSOCKET
_dbus_handle_to_socket (sitter->socket_to_main, &sock);
send (sock->fd, " ", 1, 0);
+#else
+ send (sitter->socket_to_main, " ", 1, 0);
+#endif
_dbus_babysitter_unref (sitter);