meta-digi-dey: Use videodev2.h for kernels from 2.6.38 onwards.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
parent
45f09525f4
commit
0e4a6616e7
|
|
@ -32,7 +32,12 @@
|
|||
|
||||
#include <linux/fb.h>
|
||||
#include <linux/mxcfb.h>
|
||||
#include <linux/version.h>
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37)
|
||||
#include <linux/videodev2.h>
|
||||
#else
|
||||
#include <linux/videodev.h>
|
||||
#endif
|
||||
|
||||
#define fourcc(a,b,c,d)\
|
||||
(((__u32)(a)<<0)|((__u32)(b)<<8)|((__u32)(c)<<16)|((__u32)(d)<<24))
|
||||
|
|
|
|||
|
|
@ -36,10 +36,10 @@ extern "C" {
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <asm/types.h>
|
||||
#include <linux/videodev.h>
|
||||
#include <sys/mman.h>
|
||||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
#include "v4l2_defs.h"
|
||||
|
||||
#define ipu_fourcc(a,b,c,d)\
|
||||
(((__u32)(a)<<0)|((__u32)(b)<<8)|((__u32)(c)<<16)|((__u32)(d)<<24))
|
||||
|
|
|
|||
Loading…
Reference in New Issue