Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/test
In directory usw-pr-cvs1:/tmp/cvs-serv25323
Modified Files:
extra.h
Log Message:
2.4 / 2.5 compatibility
Index: extra.h
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/extra.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -U2 -r1.1 -r1.2
--- extra.h 5 Sep 2001 16:12:49 -0000 1.1
+++ extra.h 9 Feb 2002 13:44:33 -0000 1.2
@@ -6,4 +6,15 @@
#define CONFIG_LDM_DEBUG 1
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,1)
+#define unlikely(x) __builtin_expect((x),0)
+#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,2)
+typedef struct list_head list_t;
+#endif
+
#endif /* _LDM_EXTRA_H_ */
|