Do not attempt to include removed devfs_fs_kernel.h file for 2.6.18+ kernel.
authorppisa <ppisa>
Tue, 3 Oct 2006 15:36:53 +0000 (15:36 +0000)
committerppisa <ppisa>
Tue, 3 Oct 2006 15:36:53 +0000 (15:36 +0000)
lincan/include/kthread.h
lincan/src/kthread.c

index 1450f81..2d3ee56 100644 (file)
@@ -10,7 +10,9 @@
   #include <linux/tqueue.h>
   #define tasklet_struct tq_struct
 #else
-  #include <linux/devfs_fs_kernel.h>
+  #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17))
+    #include <linux/devfs_fs_kernel.h>
+  #endif
 #endif
 
 #include <linux/wait.h>
index cce9ff5..4e574a9 100644 (file)
@@ -10,7 +10,9 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,40))
   #include <linux/tqueue.h>
 #else
-  #include <linux/devfs_fs_kernel.h>
+  #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17))
+    #include <linux/devfs_fs_kernel.h>
+  #endif
 #endif
 
 #include <linux/wait.h>