This function was added shortly after dbus 1.1.0, and our minimum required dbus version is greater than 1.4. --- configure.ac | 9 --------- src/modules/dbus/module-dbus-protocol.c | 8 -------- src/pulsecore/dbus-util.c | 8 -------- 3 files changed, 25 deletions(-) diff --git a/configure.ac b/configure.ac index 1a49c5e31..8d342010c 100644 --- a/configure.ac +++ b/configure.ac @@ -1013,15 +1013,6 @@ AS_IF([test "x$enable_dbus" != "xno"], AS_IF([test "x$enable_dbus" = "xyes" && test "x$HAVE_DBUS" = "x0"], [AC_MSG_ERROR([*** D-Bus not available or too old version])]) -AS_IF([test "x$HAVE_DBUS" = "x1"], - [ - save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $DBUS_CFLAGS" - save_LIBS="$LIBS"; LIBS="$LIBS $DBUS_LIBS" - AC_CHECK_FUNCS(dbus_watch_get_unix_fd) - CFLAGS="$save_CFLAGS" - LIBS="$save_LIBS" - ]) - AC_SUBST(HAVE_DBUS) AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1]) AS_IF([test "x$HAVE_DBUS" = "x1"], AC_DEFINE([HAVE_DBUS], 1, [Have D-Bus.])) diff --git a/src/modules/dbus/module-dbus-protocol.c b/src/modules/dbus/module-dbus-protocol.c index 259eb9f09..8a83c7693 100644 --- a/src/modules/dbus/module-dbus-protocol.c +++ b/src/modules/dbus/module-dbus-protocol.c @@ -218,11 +218,7 @@ static void io_event_cb(pa_mainloop_api *mainloop, pa_io_event *e, int fd, pa_io unsigned int flags = 0; DBusWatch *watch = userdata; -#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD pa_assert(fd == dbus_watch_get_unix_fd(watch)); -#else - pa_assert(fd == dbus_watch_get_fd(watch)); -#endif if (!dbus_watch_get_enabled(watch)) { pa_log_warn("Asked to handle disabled watch: %p %i", (void*) watch, fd); @@ -289,11 +285,7 @@ static dbus_bool_t watch_add_cb(DBusWatch *watch, void *data) { ev = mainloop->io_new( mainloop, -#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD dbus_watch_get_unix_fd(watch), -#else - dbus_watch_get_fd(watch), -#endif get_watch_flags(watch), io_event_cb, watch); dbus_watch_set_data(watch, ev, NULL); diff --git a/src/pulsecore/dbus-util.c b/src/pulsecore/dbus-util.c index d5d5f7e1d..7d550204e 100644 --- a/src/pulsecore/dbus-util.c +++ b/src/pulsecore/dbus-util.c @@ -100,11 +100,7 @@ static void handle_io_event(pa_mainloop_api *ea, pa_io_event *e, int fd, pa_io_e unsigned int flags = 0; DBusWatch *watch = userdata; -#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD pa_assert(fd == dbus_watch_get_unix_fd(watch)); -#else - pa_assert(fd == dbus_watch_get_fd(watch)); -#endif if (!dbus_watch_get_enabled(watch)) { pa_log_warn("Asked to handle disabled watch: %p %i", (void*) watch, fd); @@ -153,11 +149,7 @@ static dbus_bool_t add_watch(DBusWatch *watch, void *data) { ev = c->mainloop->io_new( c->mainloop, -#ifdef HAVE_DBUS_WATCH_GET_UNIX_FD dbus_watch_get_unix_fd(watch), -#else - dbus_watch_get_fd(watch), -#endif get_watch_flags(watch), handle_io_event, watch); dbus_watch_set_data(watch, ev, NULL); -- 2.17.0