patch-2.0.34 linux/fs/fat/mmap.c
Next file: linux/fs/fat/tables.c
Previous file: linux/fs/fat/misc.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Jun 3 15:17:49 1998
- Orig file:
v2.0.33/linux/fs/fat/mmap.c
- Orig date:
Thu Feb 8 21:47:16 1996
diff -u --recursive --new-file v2.0.33/linux/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -7,6 +7,9 @@
* mmap handling for fat-based filesystems
*/
+#define ASC_LINUX_VERSION(V, P, S) (((V) * 65536) + ((P) * 256) + (S))
+#include <linux/version.h>
+
#include <linux/stat.h>
#include <linux/sched.h>
#include <linux/kernel.h>
@@ -18,7 +21,11 @@
#include <linux/malloc.h>
#include <linux/msdos_fs.h>
+#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
+#include <asm/uaccess.h>
+#else
#include <asm/segment.h>
+#endif
#include <asm/system.h>
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov