Hi Luis, As you are including linux/version.h, you can do something like this : #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) 2.4 code #else 2.6 code #endif Cheers Margit