1 diff -urN OpenCV-2.1.0.orig/CMakeLists.txt OpenCV-2.1.0/CMakeLists.txt
2 --- OpenCV-2.1.0.orig/CMakeLists.txt 2011-05-08 14:13:05.000000000 +0200
3 +++ OpenCV-2.1.0/CMakeLists.txt 2011-05-08 14:13:39.000000000 +0200
7 CHECK_MODULE(libv4l1 HAVE_LIBV4L)
8 - CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L)
9 + CHECK_INCLUDE_FILE(libv4l1-videodev.h HAVE_CAMV4L)
10 CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2)
12 set(HAVE_LIBV4L FALSE)
13 diff -urN OpenCV-2.1.0.orig/src/highgui/cvcap_libv4l.cpp OpenCV-2.1.0/src/highgui/cvcap_libv4l.cpp
14 --- OpenCV-2.1.0.orig/src/highgui/cvcap_libv4l.cpp 2011-05-08 14:13:04.000000000 +0200
15 +++ OpenCV-2.1.0/src/highgui/cvcap_libv4l.cpp 2011-05-08 14:14:03.000000000 +0200
18 #include <sys/ioctl.h>
20 -#include <linux/videodev.h>
21 +#include <libv4l1-videodev.h>
22 #include <linux/videodev2.h>
25 diff -urN OpenCV-2.1.0.orig/src/highgui/cvcap_v4l.cpp OpenCV-2.1.0/src/highgui/cvcap_v4l.cpp
26 --- OpenCV-2.1.0.orig/src/highgui/cvcap_v4l.cpp 2011-05-08 14:13:04.000000000 +0200
27 +++ OpenCV-2.1.0/src/highgui/cvcap_v4l.cpp 2011-05-08 14:14:41.000000000 +0200
29 #include <sys/types.h>
32 -#include <linux/videodev.h>
33 +#include <libv4l1-videodev.h>