Commit ba35f732 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

V4L2_CTRL_FLAG_VOLATILE is in Linux 3.2, not 3.1

parent badd331a
......@@ -31,11 +31,13 @@
/* Hacks to compile with old headers */
#ifdef __linux__
# include <linux/version.h>
# if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
# if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
# warning Please update Video4Linux2 headers!
# define V4L2_CTRL_TYPE_BITMASK 8
# define V4L2_CTRL_FLAG_VOLATILE 0x0080
# endif
# if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
# define V4L2_CTRL_TYPE_BITMASK 8
# endif
#endif
#ifdef HAVE_LIBV4L2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment