projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28eef5c
)
added mm.h compat header
author
David Schleef
<ds@schleef.org>
Fri, 1 Dec 2000 19:05:53 +0000
(19:05 +0000)
committer
David Schleef
<ds@schleef.org>
Fri, 1 Dec 2000 19:05:53 +0000
(19:05 +0000)
include/linux/mm.h
[new file with mode: 0644]
patch
|
blob
diff --git a/include/linux/mm.h
b/include/linux/mm.h
new file mode 100644
(file)
index 0000000..
645ce36
--- /dev/null
+++ b/
include/linux/mm.h
@@ -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 */
+
+
+
+