--- lirc_gpio.c.orig 2006-12-10 20:15:35.000000000 +0100 +++ lirc_gpio.c 2006-12-10 20:14:42.000000000 +0100 @@ -53,10 +53,15 @@ #include "extra_2.6.16/bttv.h" #include "extra_2.6.16/bttvp.h" #else +#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,17) +#include "extra_2.6.16/bttv.h" +#include "extra_2.6.16/bttvp.h" +#else #include "../drivers/media/video/bttv.h" #include "../drivers/media/video/bttvp.h" #endif #endif +#endif #if BTTV_VERSION_CODE < KERNEL_VERSION(0,7,45) #error "*******************************************************"