diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-02-10 10:57:35 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-02-10 10:57:35 +0000 |
commit | f46799d64b11a97637f658cfe4cd47855f5a269a (patch) | |
tree | 143faaf47736f4bef4bd9e23c4c5c3179e961539 | |
parent | 9a2b08d42f91d283bb318d2927c5e8873eb6e625 (diff) |
don't check i_size_read() on 2.6.X
-rw-r--r-- | configure.in | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/configure.in b/configure.in index 7aa7ad9..035c419 100644 --- a/configure.in +++ b/configure.in @@ -61,13 +61,15 @@ if test "$enable_kernel_module" != "no"; then AC_SUBST(kmoduledir) subdirs="$subdirs kernel" - old_cflags="$CFLAGS" - CFLAGS="-I${kernelsrc}/include -Wall -O2 -D__KERNEL__" - AC_CHECK_DECL(i_size_read, - AC_DEFINE(HAVE_I_SIZE_FUNC, 1, - [Kernel has i_size_read() and i_size_write() functions]),, - [#include <linux/fs.h>]) - CFLAGS="$old_cflags" + if echo "$kernsrcver" | grep -q "^2.4"; then + old_cflags="$CFLAGS" + CFLAGS="-I${kernelsrc}/include -Wall -O2 -fno-strict-aliasing -D__KERNEL__" + AC_CHECK_DECL(i_size_read, + AC_DEFINE(HAVE_I_SIZE_FUNC, 1, + [Kernel has i_size_read() and i_size_write() functions]),, + [#include <linux/fs.h>]) + CFLAGS="$old_cflags" + fi fi if test "$enable_lib" != "no"; then |