summaryrefslogtreecommitdiffstats
path: root/server/sbus
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-03-31 15:45:07 +0200
committerSimo Sorce <ssorce@redhat.com>2009-04-01 11:02:05 -0400
commit68ea74985231880a7c113aacefe19445c010a320 (patch)
tree0c827bcdf5ac1e2c81a6e69db28a0cbfd0774979 /server/sbus
parent99c38e7eec4eda354afe4936cc9e7a5653a0f137 (diff)
downloadsssd-68ea74985231880a7c113aacefe19445c010a320.tar.gz
sssd-68ea74985231880a7c113aacefe19445c010a320.tar.xz
sssd-68ea74985231880a7c113aacefe19445c010a320.zip
allow compilation with older version of dbus
Diffstat (limited to 'server/sbus')
-rw-r--r--server/sbus/sssd_dbus_connection.c4
-rw-r--r--server/sbus/sssd_dbus_server.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/server/sbus/sssd_dbus_connection.c b/server/sbus/sssd_dbus_connection.c
index 3629957ee..9c33d2243 100644
--- a/server/sbus/sssd_dbus_connection.c
+++ b/server/sbus/sssd_dbus_connection.c
@@ -170,7 +170,11 @@ static dbus_bool_t sbus_add_conn_watch(DBusWatch *watch, void *data)
conn_w_ctx->watch = watch;
flags = dbus_watch_get_flags(watch);
+#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD
conn_w_ctx->fd = dbus_watch_get_unix_fd(watch);
+#else
+ conn_w_ctx->fd = dbus_watch_get_fd(watch);
+#endif
event_flags = 0;
diff --git a/server/sbus/sssd_dbus_server.c b/server/sbus/sssd_dbus_server.c
index e30f9abfb..ec01c77c3 100644
--- a/server/sbus/sssd_dbus_server.c
+++ b/server/sbus/sssd_dbus_server.c
@@ -102,7 +102,11 @@ static dbus_bool_t sbus_add_srv_watch(DBusWatch *watch, void *data)
svw_ctx->watch = watch;
flags = dbus_watch_get_flags(watch);
+#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD
svw_ctx->fd = dbus_watch_get_unix_fd(watch);
+#else
+ svw_ctx->fd = dbus_watch_get_fd(watch);
+#endif
event_flags = 0;