summaryrefslogtreecommitdiff
path: root/src/dbusbind.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-04-22 10:46:49 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-04-22 10:46:49 -0700
commitde85e130f59b5164e2150abda92316f3a07d82c0 (patch)
treecdc3f38ad60518f5ea8f2243c7ff62e1e1fbc302 /src/dbusbind.c
parentdcbf5805ac7ade7fc83f3d209e2d56f029918402 (diff)
downloademacs-de85e130f59b5164e2150abda92316f3a07d82c0.tar.gz
* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 78e5c80baf3..0ea08d7bf0e 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -291,6 +291,8 @@ xd_symbol_to_dbus_type (Lisp_Object object)
} \
} while (0)
+#if (HAVE_DBUS_VALIDATE_BUS_NAME || HAVE_DBUS_VALIDATE_PATH \
+ || XD_DBUS_VALIDATE_OBJECT || HAVE_DBUS_VALIDATE_MEMBER)
#define XD_DBUS_VALIDATE_OBJECT(object, func) \
do { \
if (!NILP (object)) \
@@ -304,6 +306,7 @@ xd_symbol_to_dbus_type (Lisp_Object object)
dbus_error_free (&derror); \
} \
} while (0)
+#endif
#if HAVE_DBUS_VALIDATE_BUS_NAME
#define XD_DBUS_VALIDATE_BUS_NAME(bus_name) \
@@ -864,7 +867,7 @@ static int
xd_get_connection_references (DBusConnection *connection)
{
ptrdiff_t *refcount;
-
+
/* We cannot access the DBusConnection structure, it is not public.
But we know, that the reference counter is the first field in
that structure. */