[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.3, Tue Jan 16 14:56:58 2007 UTC (10 years, 9 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +16 -0 lines

Merge of 2.6.x-xfs-melb:linux:27935a by kenmcd.

  Reinstate delete file.

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__ */