[BACK]Return to xfs.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs-all / mainline-patches

File: [Development] / linux-2.6-xfs-all / mainline-patches / xfs.h (download)

Revision 1.1, Thu Dec 21 14:39:45 2006 UTC (10 years, 10 months ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN

Merge up to 2.6.19
Merge of 2.6.x-xfs-melb:linux:27801b by kenmcd.

linux-2.4 support

--- /home/chatz/isms/linux-2.6.19/fs/xfs/xfs.h	2006-11-30 08:57:37.000000000 +1100
+++ xfs.h	2006-12-15 17:48:29.000000000 +1100
@@ -40,5 +40,11 @@
 #define XFS_VNODE_TRACE 1
 #endif
 
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 #include <linux-2.6/xfs_linux.h>
+#else
+#include <linux-2.4/xfs_linux.h>
+#endif
+
 #endif	/* __XFS_H__ */