build: drop check for udev_monitor_set_receive_buffer_size

It has been exported by systemd commit
commit a571c23e954cb88cdd5faa28593b19bd7c340130
    libudev: export udev_monitor_set_receive_buffer_size()
released in v183.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Ján Tomko 2019-05-13 16:22:40 +02:00
parent 385d4b851f
commit 02de59ccb6
2 changed files with 0 additions and 12 deletions

View File

@ -28,16 +28,6 @@ AC_DEFUN([LIBVIRT_CHECK_UDEV],[
if test "$with_udev" = "yes" && test "$with_pciaccess" != "yes" ; then
AC_MSG_ERROR([You must install the pciaccess module to build with udev])
fi
if test "$with_udev" = "yes" ; then
old_CFLAGS="$CFLAGS"
old_LIBS="$LIBS"
CFLAGS="$CFLAGS $UDEV_CFLAGS"
LIBS="$CFLAGS $UDEV_LIBS"
AC_CHECK_FUNCS([udev_monitor_set_receive_buffer_size])
CFLAGS="$old_CFLAGS"
LIBS="$old_LIBS"
fi
])
AC_DEFUN([LIBVIRT_RESULT_UDEV],[

View File

@ -1847,14 +1847,12 @@ nodeStateInitialize(bool privileged,
udev_monitor_enable_receiving(priv->udev_monitor);
#if HAVE_UDEV_MONITOR_SET_RECEIVE_BUFFER_SIZE
/* mimic udevd's behaviour and override the systems rmem_max limit in case
* there's a significant number of device 'add' events
*/
if (geteuid() == 0)
udev_monitor_set_receive_buffer_size(priv->udev_monitor,
128 * 1024 * 1024);
#endif
if (virThreadCreate(&priv->th, true, udevEventHandleThread, NULL) < 0) {
virReportSystemError(errno, "%s",