SHA256
1
0
forked from pool/v4l-utils
v4l-utils/sysmacros.patch

35 lines
1.1 KiB
Diff

Index: v4l-utils-1.14.1/lib/libv4lconvert/control/libv4lcontrol.c
===================================================================
--- v4l-utils-1.14.1.orig/lib/libv4lconvert/control/libv4lcontrol.c
+++ v4l-utils-1.14.1/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>
#if defined(MAJOR_IN_SYSMACROS)
#include <sys/sysmacros.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
+++ v4l-utils-1.14.1/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 <fcntl.h>
#include <ctype.h>