*** empty log message ***
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 13 Sep 2004 14:56:57 +0000 (14:56 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Mon, 13 Sep 2004 14:56:57 +0000 (14:56 +0000)
ChangeLog
configure.in
kernel/Makefile.in

index b5219f182c39fcf3998d7553e71b179421b19bd7..8f083f5ec8e9ecb3ced5becb4aa64431180f825e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
 
        * Make requests non-interruptible so race with FORGET is avoided.
        This is only a temporary solution
+
+       * Support compiling FUSE kernel module on 2.4.x UML kernels
        
 2004-09-09  Miklos Szeredi <miklos@szeredi.hu>
 
index 7e715c7cbdefb8a4831b43253a9851da3ae705ae..0e76491952a2bf0fe2c1e4c4a92d8f97ea1e26af 100644 (file)
@@ -91,13 +91,16 @@ if test "$enable_kernel_module" != "no"; then
 
        isuml=no
        KERNELMAKE_PARAMS=
+       KERNELCPPFLAGS=
        AC_MSG_CHECKING([if this is user mode linux])
        if test -f $kernelsrc/include/linux/autoconf.h && grep -q "^#define CONFIG_USERMODE 1" $kernelsrc/include/linux/autoconf.h; then
                isuml=yes
                KERNELMAKE_PARAMS="ARCH=um"
+               KERNELCPPFLAGS="-D__arch_um__ -DSUBARCH=\\\"i386\\\" -D_LARGEFILE64_SOURCE -I${kernelsrc}/arch/um/include -Derrno=kernel_errno -I${kernelsrc}/arch/um/kernel/tt/include -I${kernelsrc}/arch/um/kernel/skas/include"
        fi
        AC_MSG_RESULT([$isuml])
        AC_SUBST(KERNELMAKE_PARAMS)
+       AC_SUBST(KERNELCPPFLAGS)
 fi
 
 if test "$enable_lib" != "no"; then
index bcd792fbd3333fa450390d4bec1a5488e8c2c4f9..aa6dd60ffa76208d37c9b0236ceead97699a289b 100644 (file)
@@ -43,7 +43,7 @@ ifeq ($(majver), 2.4)
 CC = @CC@
 LD = @LD@
 CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe 
-CPPFLAGS = -I@kernelsrc@/include -I../include -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"@VERSION@\"
+CPPFLAGS = -I@kernelsrc@/include -I../include -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"@VERSION@\" @KERNELCPPFLAGS@
 
 fuse_objs = dev.o dir.o file.o inode.o util.o compat/parser.o