added mm.h compat header
authorDavid Schleef <ds@schleef.org>
Fri, 1 Dec 2000 19:05:53 +0000 (19:05 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 1 Dec 2000 19:05:53 +0000 (19:05 +0000)
include/linux/mm.h [new file with mode: 0644]

diff --git a/include/linux/mm.h b/include/linux/mm.h
new file mode 100644 (file)
index 0000000..645ce36
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * linux/mm.h compatibility header
+ */
+
+#ifndef _COMPAT_MM_H
+#define _COMPAT_MM_H
+
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < 0x020300
+#define VM_OFFSET(a)   ((a)->vm_offset)
+#else
+#define VM_OFFSET(a)   ((a)->vm_pgoff * PAGE_SIZE)
+#endif
+
+#include_next <linux/mm.h>
+
+#endif /* _COMPAT_MM_H */
+
+
+
+