Index: vloopback.c =================================================================== --- vloopback.c (revisión: 17) +++ vloopback.c (copia de trabajo) @@ -156,6 +156,9 @@ * 17.05.09 (Peter Holik) * Patch to allow work with kernel 2.6.29 * + * 05.08.09 (Angel Carpintero) + * Allow to compile with kernel 2.6.30.* + * */ @@ -178,11 +181,17 @@ /* v4l_compat_ioctl32 */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) + #ifdef __KERNEL__ + #undef __KERNEL__ + #endif #include #endif #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27) #define vd_private_data dev.driver_data + #ifndef __KERNEL__ + #define __KERNEL__ + #endif #else #define vd_private_data priv #endif @@ -191,6 +200,7 @@ #include #include + /* Include files which are unique to versions */ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) #include