v4l-utils/sysmacros.patch
2020-01-08 09:03:39 +00:00

35 lines
1.1 KiB
Diff

Index: v4l-utils-1.18.0/lib/libv4lconvert/control/libv4lcontrol.c
===================================================================
--- v4l-utils-1.18.0.orig/lib/libv4lconvert/control/libv4lcontrol.c
+++ v4l-utils-1.18.0/lib/libv4lconvert/control/libv4lcontrol.c
@@ -19,6 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
*/
+#include "config.h"
#include <sys/types.h>
#ifndef __OpenBSD__
#include <sys/sysmacros.h>
Index: v4l-utils-1.18.0/utils/v4l2-ctl/v4l2-ctl.cpp
===================================================================
--- v4l-utils-1.18.0.orig/utils/v4l2-ctl/v4l2-ctl.cpp
+++ v4l-utils-1.18.0/utils/v4l2-ctl/v4l2-ctl.cpp
@@ -20,6 +20,7 @@
Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
*/
+#include "config.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -27,6 +28,9 @@
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
+#if defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
#include <sys/stat.h>
#include <sys/epoll.h>
#include <fcntl.h>