mtd/include/linux/mtd compatmac.h,1.47,1.48

David Woodhouse dwmw2 at infradead.org
Fri May 9 18:54:30 EDT 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv10773

Modified Files:
	compatmac.h 
Log Message:
More compatmac stuff to build with 2.4.20-9.
Ideally we'd have HAVE_SOME_RANDOM_FEATURE macros rather than just
a vendor tag. 


Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- compatmac.h	28 Apr 2003 16:53:45 -0000	1.47
+++ compatmac.h	9 May 2003 22:54:28 -0000	1.48
@@ -483,7 +483,7 @@
 #define MODULE_LICENSE(x) /* */
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,5)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,5) && !defined(__rh_config_h__)
 #include <linux/sched.h>
 static inline void __recalc_sigpending(void)
 {
@@ -523,7 +523,7 @@
 #define set_user_nice(tsk, n) do { (tsk)->nice = n; } while(0)
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21) && !defined(__rh_config_h__)
 #define rq_data_dir(x)	((x)->cmd)
 #endif
 




More information about the linux-mtd-cvs mailing list