File sysmacros.patch of Package v4l-utils

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>
openSUSE Build Service is sponsored by