aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-04-13 10:49:54 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-04-13 10:49:54 +0000
commit87f30a9b2558d68e8edd3849291c381691dadfae (patch)
treeed14fd0b39aa22ed4d70f8be2cfa4f5f1fd30697
parent7f6bc8968ff6ca488991b0c5b1b9c4846dc1ccda (diff)
downloadlibfuse-87f30a9b2558d68e8edd3849291c381691dadfae.tar.gz
_FILE_OFFSET_BITS checking
-rw-r--r--ChangeLog8
-rw-r--r--configure.in1
-rw-r--r--include/fuse.h6
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d78ca5..5ceddaf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-13 Miklos Szeredi <mszeredi@inf.bme.hu>
+
+ * Replaced binary mount data with text options
+
+ * Show FUSE specific mount options in /proc/mounts
+
+ * Check in fuse.h whether _FILE_OFFSET_BITS is set to 64
+
2004-04-09 Miklos Szeredi <mszeredi@inf.bme.hu>
* Check some limits so userspace won't get too big requests
diff --git a/configure.in b/configure.in
index bc272f1..cd943fe 100644
--- a/configure.in
+++ b/configure.in
@@ -11,6 +11,7 @@ fi
AC_SUBST(LD)
CFLAGS="-Wall -W -g -O2"
+CPPFLAGS="$(CPPFLAGS) -D_FILE_OFFSET_BITS=64"
AC_ARG_ENABLE(kernel-module,
[ --enable-kernel-module Compile kernel module, requires --with-kernel option ])
diff --git a/include/fuse.h b/include/fuse.h
index 79c62a6..f523051 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -17,8 +17,10 @@
/** Minor version of FUSE library interface */
#define FUSE_MINOR_VERSION 1
-/* Now and forever: this interface uses 64 bit off_t */
-#define _FILE_OFFSET_BITS 64
+/* This interface uses 64 bit off_t */
+#if _FILE_OFFSET_BITS != 64
+#error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
+#endif
#include <sys/types.h>
#include <sys/stat.h>