File v4l-utils-include-sysmacros.h-minor.patch of Package v4l-utils.23750
Index: v4l-utils-1.14.1/lib/libv4lconvert/control/libv4lcontrol.c
===================================================================
--- v4l-utils-1.14.1.orig/lib/libv4lconvert/control/libv4lcontrol.c 2017-12-27 15:33:07.000000000 +0100
+++ v4l-utils-1.14.1/lib/libv4lconvert/control/libv4lcontrol.c 2022-04-05 10:19:49.761641071 +0200
@@ -20,7 +20,7 @@
*/
#include <sys/types.h>
-#if defined(MAJOR_IN_SYSMACROS)
+#ifndef __OpenBSD__
#include <sys/sysmacros.h>
#endif
#include <sys/mman.h>
Index: v4l-utils-1.14.1/utils/v4l2-ctl/v4l2-ctl.cpp
===================================================================
--- v4l-utils-1.14.1.orig/utils/v4l2-ctl/v4l2-ctl.cpp 2017-12-27 14:50:55.000000000 +0100
+++ v4l-utils-1.14.1/utils/v4l2-ctl/v4l2-ctl.cpp 2022-04-05 10:23:00.794729036 +0200
@@ -28,6 +28,7 @@
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>