From: David Schleef Date: Fri, 1 Dec 2000 19:05:53 +0000 (+0000) Subject: added mm.h compat header X-Git-Tag: r0_7_52~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=80c5d3ddc0fd61fc7a856fe3155321acb948b9f3;p=comedi.git added mm.h compat header --- 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 */ + + + +