blob: 815a6ad198c0626b1dd2a1474ec19333cbc65845 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Add support for v4l2 on Linux so it can compile against modern
kernel headers. #363201
Patch by Kevin McCarthy <signals@gentoo.org>
--- configure.ac
+++ configure.ac
@@ -382,6 +382,10 @@
AC_CHECK_HEADERS(sys/videodev2.h,FOUND_OS=solaris,FOUND_OS=linux)
fi
+if test "$FOUND_OS" = "linux"; then
+ AC_CHECK_HEADERS(linux/videodev2.h)
+fi
+
#---------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------
--- utils/linux/capture/capture.h
+++ utils/linux/capture/capture.h
@@ -33,7 +33,11 @@
#ifdef HAVE_SYS_VIDEODEV2_H
# include <sys/videodev2.h>
#else
-# include <linux/videodev.h>
+ #ifdef HAVE_LINUX_VIDEODEV2_H
+ #include <linux/videodev2.h>
+ #else
+ #include <linux/videodev.h>
+ #endif
#endif
#include "grab-ng.h"
|