fix shfs compile on 2.6.22
[openwrt/svn-archive/archive.git] / package / shfs / patches / 109-linux_2.6.22.patch
1 Index: shfs-0.35/shfs/Linux-2.6/dir.c
2 ===================================================================
3 --- shfs-0.35.orig/shfs/Linux-2.6/dir.c 2007-06-17 04:08:32.449815896 +0200
4 +++ shfs-0.35/shfs/Linux-2.6/dir.c 2007-06-17 04:08:41.766399560 +0200
5 @@ -13,6 +13,7 @@
6 #include <asm/uaccess.h>
7 #include <linux/smp_lock.h>
8 #include <linux/stat.h>
9 +#include <linux/jiffies.h>
10
11 #include "shfs_fs.h"
12 #include "shfs_fs_i.h"
13 Index: shfs-0.35/shfs/Linux-2.6/inode.c
14 ===================================================================
15 --- shfs-0.35.orig/shfs/Linux-2.6/inode.c 2007-06-17 04:09:01.961329464 +0200
16 +++ shfs-0.35/shfs/Linux-2.6/inode.c 2007-06-17 04:13:08.501849608 +0200
17 @@ -15,6 +15,9 @@
18 #include <asm/uaccess.h>
19 #include <linux/file.h>
20 #include <linux/smp_lock.h>
21 +#include <linux/jiffies.h>
22 +#include <linux/sched.h>
23 +#include <asm/current.h>
24
25 #include "shfs_fs.h"
26 #include "shfs_fs_sb.h"