X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/799073b4fb7461253f6dddb667e4a71d51859246..fdda6e9262ba019da93832120a9999941e9b8f3b:/lincan/include/kthread.h diff --git a/lincan/include/kthread.h b/lincan/include/kthread.h index 559bdd1..395b04b 100644 --- a/lincan/include/kthread.h +++ b/lincan/include/kthread.h @@ -1,9 +1,9 @@ #ifndef _KTHREAD_H #define _KTHREAD_H -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) - #include -#endif #include +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) +#include +#endif #include #include @@ -11,15 +11,22 @@ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,40)) #include #define tasklet_struct tq_struct -#elif (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) - #include +#else + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) + #include + #endif #endif #include #include #include -#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) + #include +#else + #include +#endif /* a structure to store all information we need for our thread */