From 6a287503119f0d2d43117d0f9db47e1989ce418a Mon Sep 17 00:00:00 2001 From: mcalamelli Date: Wed, 26 Nov 2008 12:04:10 +0000 Subject: [PATCH] =?utf8?q?dbus=20version=20match=20at=20compile=20time=20f?= =?utf8?q?or=20dbus=5Fwatch=5Fget=5Funix=5Ffd,=20thx=20Trevi=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@37810 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/dbus/e_dbus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/dbus/e_dbus.c b/src/lib/dbus/e_dbus.c index 42c561c..d4bf889 100644 --- a/src/lib/dbus/e_dbus.c +++ b/src/lib/dbus/e_dbus.c @@ -134,7 +134,11 @@ e_dbus_connection_data_watch_add(E_DBus_Connection *cd, DBusWatch *watch) hd->watch = watch; hd->enabled = dbus_watch_get_enabled(watch); +#if (DBUS_VERSION_MAJOR == 1 && DBUS_VERSION_MINOR == 1 && DBUS_VERSION_MICRO >= 1) || (DBUS_VERSION_MAJOR == 1 && DBUS_VERSION_MAJOR > 1) || (DBUS_VERSION_MAJOR > 1) hd->fd = dbus_watch_get_unix_fd(hd->watch); +#else + hd->fd = dbus_watch_get_fd(hd->watch); +#endif DEBUG(5, "watch add (enabled: %d)\n", hd->enabled); if (hd->enabled) e_dbus_fd_handler_add(hd); } -- 2.7.4