diff vloopback.c @ 10:bce647a9dd4b

Some changes to allow working with stock kernel 2.6.27
author AngelCarpintero
date Mon, 13 Oct 2008 00:26:10 +0000
parents 80590d10a596
children b904131a3807
line wrap: on
line diff
--- a/vloopback.c	Sun Aug 31 17:28:08 2008 +0000
+++ b/vloopback.c	Mon Oct 13 00:26:10 2008 +0000
@@ -145,6 +145,10 @@
  * 24.08.08    (Angel Carpintero)
  *            Added compat_iotcl32 init in fopsl, replace tabs by 4 spaces in source code,
  *            add number of buffers as module param.
+ *
+ * 13.10.09    (Stephan Berberig & Angel Carpintero)
+ *            Release to work on 2.6.27 , allow v4l_compat_ioctl32 work in 2.6.27 and a little cleanup 
+ *            in Makefile.
  */
 
 
@@ -161,6 +165,11 @@
  #include <media/v4l2-common.h>
 #endif
 
+/* v4l_compat_ioctl32 */ 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ #include <media/v4l2-ioctl.h>
+#endif
+
 #include <linux/videodev.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>