From: Miklos Szeredi Date: Tue, 13 Apr 2004 10:49:54 +0000 (+0000) Subject: _FILE_OFFSET_BITS checking X-Git-Tag: fuse_1_9~68 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=87f30a9b2558d68e8edd3849291c381691dadfae;p=qemu-gpiodev%2Flibfuse.git _FILE_OFFSET_BITS checking --- diff --git a/ChangeLog b/ChangeLog index 3d78ca5..5ceddaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-04-13 Miklos Szeredi + + * 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 * 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 #include