Add check for udev_monitor_enable_receiving() function
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Jan 2009 19:08:59 +0000 (20:08 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Jan 2009 19:08:59 +0000 (20:08 +0100)
configure.ac
src/udev.c

index 8b2abcd..564f7c0 100644 (file)
@@ -103,6 +103,10 @@ AC_ARG_ENABLE(udev, AC_HELP_STRING([--enable-udev],
                [enable udev support]), [enable_udev=${enableval}])
 if (test "${enable_udev}" = "yes"); then
        AC_DEFINE(HAVE_UDEV, 1, [Define if udev support is available])
+       AC_CHECK_LIB(udev, udev_monitor_enable_receiving, dummy=yes,
+               AC_DEFINE(NEED_UDEV_MONITOR_ENABLE_RECEIVING, 1,
+                       [Define to 1 if you need the
+                               udev_monitor_enable_receiving() function.]))
        AC_CHECK_LIB(udev, udev_monitor_receive_device, dummy=yes,
                AC_DEFINE(NEED_UDEV_MONITOR_RECEIVE_DEVICE, 1,
                        [Define to 1 if you need the
index a14ce93..5c90112 100644 (file)
 
 #include "connman.h"
 
+#ifdef NEED_UDEV_MONITOR_ENABLE_RECEIVING
+static int udev_monitor_enable_receiving(struct udev_monitor *monitor)
+{
+       return 0;
+}
+#endif
+
 #ifdef NEED_UDEV_MONITOR_RECEIVE_DEVICE
 static struct udev_device *udev_monitor_receive_device(struct udev_monitor *monitor);
 {