wok-current view amsn/stuff/amsn-v4l2.patch @ rev 12651

avant-window-navigator, bygfoot, cairo-compmgr: add LDFLAGS for Binutils 2.22
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 30 09:38:21 2012 +0200 (2012-04-30)
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"