This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: Conditional sys/sysmacros.h inclusion
Author:  Ingo Feinerer <[email protected]>
Date:    Mon Mar 13 12:58:38 2017 +0100

Make the inclusion of the sys/sysmacros.h header file conditional.
I noticed it on OpenBSD which has no sys/sysmacros.h, so compilation
fails there.

Signed-off-by: Ingo Feinerer <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 configure.ac                              | 1 +
 lib/libv4lconvert/control/libv4lcontrol.c | 2 ++
 2 files changed, 3 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=08572e7db2120bc45db732d02409dfd3346b8e51
diff --git a/configure.ac b/configure.ac
index f3269728a8de..ae58da377319 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,6 +146,7 @@ if test "x$gl_cv_func_ioctl_posix_signature" = xyes; then
 fi
 
 AC_CHECK_FUNCS([__secure_getenv secure_getenv])
+AC_HEADER_MAJOR
 
 # Check host os
 case "$host_os" in
diff --git a/lib/libv4lconvert/control/libv4lcontrol.c 
b/lib/libv4lconvert/control/libv4lcontrol.c
index 59f28b137b98..1e784eda8a92 100644
--- a/lib/libv4lconvert/control/libv4lcontrol.c
+++ b/lib/libv4lconvert/control/libv4lcontrol.c
@@ -20,7 +20,9 @@
  */
 
 #include <sys/types.h>
+#if defined(MAJOR_IN_SYSMACROS)
 #include <sys/sysmacros.h>
+#endif
 #include <sys/mman.h>
 #include <fcntl.h>
 #include <sys/stat.h>

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to