[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
#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);
{