$OpenBSD: patch-configure,v 1.18 2019/08/03 12:56:09 ajacoutot Exp $

Index: configure
--- configure.orig
+++ configure
@@ -22183,18 +22183,6 @@ if test "${with_group+set}" = set; then :
 
 fi
 
-    # check if the group does exist
-    lasterror=""
-    touch sanetest.file
-    chgrp $LOCKPATH_GROUP sanetest.file 2>/dev/null || lasterror=$?
-    rm -f sanetest.file
-    if test ! -z "$lasterror"; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&5
-$as_echo "$as_me: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&2;}
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Locking feature will be disabled." >&5
-$as_echo "$as_me: WARNING: Locking feature will be disabled." >&2;}
-      use_locking=no
-    fi
   fi
   if test $use_locking = yes ; then
     INSTALL_LOCKPATH=install-lockpath
@@ -22852,7 +22840,7 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
 fi
 
-for ac_header in fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
+for ac_header in fcntl.h unistd.h sys/dsreq.h sys/select.h \
     sys/time.h sys/shm.h sys/ipc.h sys/scanio.h os2.h \
     sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \
     dev/ppbus/ppi.h machine/cpufunc.h sys/sem.h sys/poll.h \
@@ -23078,6 +23066,7 @@ $as_echo_n "checking for socklen_t in <sys/socket.h>..
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <sys/types.h>
 #include <sys/socket.h>
 
 int
@@ -25861,8 +25850,7 @@ for be in ${BACKENDS}; do
     ;;
 
     v4l)
-    if test "${have_linux_ioctl_defines}" != "yes" \
-      || test "${have_libv4l1}" != "yes"; then
+    if test "${have_libv4l1}" != "yes"; then
       echo "*** $be backend requires v4l libraries - $DISABLE_MSG"
       backend_supported="no"
     fi
@@ -26050,8 +26038,7 @@ for be in ${BACKENDS}; do
     ;;
 
     v4l)
-    if test "${have_linux_ioctl_defines}" != "yes" \
-      || test "${have_libv4l1}" != "yes"; then
+    if test "${have_libv4l1}" != "yes"; then
       echo "*** $be backend requires v4l libraries - $DISABLE_MSG"
       backend_supported="no"
     fi
