summaryrefslogtreecommitdiff
path: root/bus/dispatch.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-03-12 19:03:12 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-24 08:27:09 +0100
commit7647179096426e4dc76332696eea926ea3def41a (patch)
treeb591d966d0809443a8d204a0239d158ce97d7f0d /bus/dispatch.c
parent73af0d5d5c953d157e89f6c02d61872a0c490edf (diff)
Fix assorted compiler warnings on Windows.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89444 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de> [rh: rebased because a few hunks have already been applied with commit 92c39d1d8a30110c5760bd8d5e695e26a8538d1a]
Diffstat (limited to 'bus/dispatch.c')
-rw-r--r--bus/dispatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index 62c4eb581..feeaec5ef 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -1332,7 +1332,9 @@ check_get_connection_unix_process_id (BusContext *context,
dbus_bool_t retval;
DBusError error;
const char *base_service_name;
+#ifdef DBUS_UNIX
dbus_uint32_t pid;
+#endif
retval = FALSE;
dbus_error_init (&error);