wok view amsn/stuff/amsn-v4l2.patch @ rev 11853

python-pyxml: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 11:08:44 2012 +0100 (2012-02-27)
parents
children 8eb478641728
line source
1 Add support for v4l2 on Linux so it can compile against modern
2 kernel headers. #363201
4 Patch by Kevin McCarthy <signals@gentoo.org>
6 --- configure.ac
7 +++ configure.ac
8 @@ -382,6 +382,10 @@
9 AC_CHECK_HEADERS(sys/videodev2.h,FOUND_OS=solaris,FOUND_OS=linux)
10 fi
12 +if test "$FOUND_OS" = "linux"; then
13 + AC_CHECK_HEADERS(linux/videodev2.h)
14 +fi
15 +
16 #---------------------------------------------------------------------------------------------
18 dnl ---------------------------------------------------------------------
19 --- utils/linux/capture/capture.h
20 +++ utils/linux/capture/capture.h
21 @@ -33,7 +33,11 @@
22 #ifdef HAVE_SYS_VIDEODEV2_H
23 # include <sys/videodev2.h>
24 #else
25 -# include <linux/videodev.h>
26 + #ifdef HAVE_LINUX_VIDEODEV2_H
27 + #include <linux/videodev2.h>
28 + #else
29 + #include <linux/videodev.h>
30 + #endif
31 #endif
33 #include "grab-ng.h"