]> git.eshelyaron.com Git - emacs.git/commitdiff
* dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 22 Aug 2009 08:57:34 +0000 (08:57 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 22 Aug 2009 08:57:34 +0000 (08:57 +0000)
intended as hotfix only.
(xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.

src/ChangeLog
src/dbusbind.c

index 0966e189239057705993cdacd904382f9689f70e..48105ecc78e17b2f8d4c5635152dfad3405e4650 100644 (file)
@@ -1,3 +1,11 @@
+2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
+
+       * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
+
+       * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
+       intended as hotfix only.
+       (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
+
 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
        * nsterm.m (ns_get_color): Update documentation properly for last
index 38912e5f51b6bb433eec6aacf059036b4542d540..9542cd2401d403ac6d548de321e594e9a379609c 100644 (file)
@@ -71,16 +71,6 @@ int xd_in_read_queued_messages = 0;
 /* We use "xd_" and "XD_" as prefix for all internal symbols, because
    we don't want to poison other namespaces with "dbus_".  */
 
-/* Since D-Bus 1.1.1, dbus_watch_get_fd() was replaced by
-   dbus_watch_get_unix_fd and dbus_watch_get_socket.  We must check
-   this.  */
-#ifdef DBUS_VERSION
-#define XD_WITH_DBUS_WATCH_GET_UNIX_FD         \
-  ((1 << 16) | (1 << 8) | (1)) <= DBUS_VERSION
-#else
-#define XD_WITH_DBUS_WATCH_GET_UNIX_FD 0
-#endif
-
 /* Raise a signal.  If we are reading events, we cannot signal; we
    throw to xd_read_queued_messages then.  */
 #define XD_SIGNAL1(arg)                                                        \
@@ -752,7 +742,7 @@ xd_add_watch (watch, data)
   /* We check only for incoming data.  */
   if (dbus_watch_get_flags (watch) & DBUS_WATCH_READABLE)
     {
-#if XD_WITH_DBUS_WATCH_GET_UNIX_FD
+#if HAVE_DBUS_WATCH_GET_UNIX_FD
       /* TODO: Reverse these on Win32, which prefers the opposite. */
       int fd = dbus_watch_get_unix_fd(watch);
       if (fd == -1)
@@ -782,7 +772,7 @@ xd_remove_watch (watch, data)
   /* We check only for incoming data.  */
   if (dbus_watch_get_flags (watch) & DBUS_WATCH_READABLE)
     {
-#if XD_WITH_DBUS_WATCH_GET_UNIX_FD
+#if HAVE_DBUS_WATCH_GET_UNIX_FD
       /* TODO: Reverse these on Win32, which prefers the opposite. */
       int fd = dbus_watch_get_unix_fd(watch);
       if (fd == -1)