Patch from abbotti@mev.co.uk (Ian Abbott):
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 25 Aug 2005 23:58:39 +0000 (23:58 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 25 Aug 2005 23:58:39 +0000 (23:58 +0000)
The include/linux/compiler.h file appeared in kernel 2.4.4, but disappeared in
2.4.5 and didn't reappear until 2.4.10! Comedi fails to build for kernel
versions 2.4.5 through 2.4.9 inclusive for this reason.

include/linux/compiler.h

index 658110c546f87510af4832cec9a9dbdcf1032e77..2e0495e5eb52096f69283ccbe80cd4e359604292 100644 (file)
@@ -7,7 +7,8 @@
 
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,4)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,10)) \
+       || (LINUX_VERSION_CODE == KERNEL_VERSION(2,4,4))
 
 #include_next <linux/compiler.h>