]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/kthread.h
LinCAN partial update of thread helper support for 2.6.27+ kernels.
[lincan.git] / lincan / include / kthread.h
index 2c570b05ba0a2a570be30f7bae3705cfb82290a7..395b04bd20364855d456b88b155cbf45a55f9e66 100644 (file)
 #include <linux/interrupt.h>
 
 #include <asm/unistd.h>
-#include <asm/semaphore.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+  #include <asm/semaphore.h>
+#else
+  #include <linux/semaphore.h>
+#endif
 
 /* a structure to store all information we need
    for our thread */