415
|
1 |
--- avahi-0.6.21.orig/configure.ac 2007年 8月 12日 日 12:08:24
|
|
2 |
+++ avahi-0.6.21/configure.ac 2007年 8月 17日 五 20:16:31
|
|
3 |
@@ -584,6 +584,10 @@
|
|
4 |
LIBS="$LIBS $DBUS_LIBS"
|
|
5 |
AC_CHECK_FUNCS([dbus_connection_close dbus_bus_get_private])
|
|
6 |
LIBS="$SAVED_LIBS"
|
|
7 |
+ AC_CHECK_LIB([dbus-1], [dbus_watch_get_unix_fd],
|
|
8 |
+ [AC_DEFINE([HAVE_DBUS_WATCH_GET_UNIX_FD], [],
|
|
9 |
+ [Define if libdbus-1 has dbus_watch_get_unix_fd])],
|
|
10 |
+ [:], [$DBUS_LIBS])
|
|
11 |
fi
|
|
12 |
AM_CONDITIONAL(HAVE_DBUS, test "x$HAVE_DBUS" = "xyes")
|
|
13 |
|
|
14 |
--- avahi-0.6.21.orig/avahi-common/dbus-watch-glue.c 2007年 8月 12日 日 11:39:21
|
|
15 |
+++ avahi-0.6.21/avahi-common/dbus-watch-glue.c 2007年 8月 17日 五 20:18:12
|
|
16 |
@@ -26,6 +26,10 @@
|
|
17 |
#include "timeval.h"
|
|
18 |
#include "dbus-watch-glue.h"
|
|
19 |
|
|
20 |
+#ifndef HAVE_DBUS_WATCH_GET_UNIX_FD
|
|
21 |
+# define dbus_watch_get_unix_fd dbus_watch_get_fd
|
|
22 |
+#endif
|
|
23 |
+
|
|
24 |
static AvahiWatchEvent translate_dbus_to_avahi(unsigned int f) {
|
|
25 |
AvahiWatchEvent e = 0;
|
|
26 |
|