From 80c5d3ddc0fd61fc7a856fe3155321acb948b9f3 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 1 Dec 2000 19:05:53 +0000 Subject: [PATCH] added mm.h compat header --- include/linux/mm.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/linux/mm.h diff --git a/include/linux/mm.h b/include/linux/mm.h new file mode 100644 index 00000000..645ce36b --- /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 + +#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 + +#endif /* _COMPAT_MM_H */ + + + + -- 2.26.2