aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--kernel/fuse_i.h4
-rw-r--r--kernel/inode.c4
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c9a7ef..b556dc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-01 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix compile problems with ancient (<=2.4.18) kernels (reported
+ by Jeremy Smith)
+
2004-10-28 Miklos Szeredi <miklos@szeredi.hu>
* Make xattr functions work under 2.6 (bug found by Vincenzo
diff --git a/kernel/fuse_i.h b/kernel/fuse_i.h
index f0b69c2..5a4d7e7 100644
--- a/kernel/fuse_i.h
+++ b/kernel/fuse_i.h
@@ -36,6 +36,10 @@
#include <linux/list.h>
#include <linux/spinlock.h>
+#ifndef BUG_ON
+#define BUG_ON(x)
+#endif
+
/** Read combining parameters */
#define FUSE_BLOCK_SHIFT 16
#define FUSE_BLOCK_SIZE 65536
diff --git a/kernel/inode.c b/kernel/inode.c
index 3c43f97..09479e1 100644
--- a/kernel/inode.c
+++ b/kernel/inode.c
@@ -46,6 +46,10 @@ MODULE_PARM_DESC(user_allow_other, "Allow non root user to specify the \"allow_o
#define FS_SAFE 0
#endif
+#ifndef MAX_LFS_FILESIZE
+#define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
+#endif
+
struct fuse_mount_data {
int fd;
unsigned int rootmode;