From 307242f21bf3ca7a0fb0f30da45b5956f47b0250 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 26 Jan 2004 11:28:44 +0000 Subject: fix --- kernel/fuse_i.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'kernel/fuse_i.h') diff --git a/kernel/fuse_i.h b/kernel/fuse_i.h index f2e55d4..cc386ac 100644 --- a/kernel/fuse_i.h +++ b/kernel/fuse_i.h @@ -8,15 +8,25 @@ #include +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) +#error Kernel version 2.5.* not supported +#endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#define KERNEL_2_6 +#endif + +#ifndef KERNEL_2_6 #include #ifdef CONFIG_MODVERSIONS #define MODVERSIONS #include #endif +#endif #include #include -#include #include #include #include @@ -28,15 +38,6 @@ #define FUSE_BLOCK_PAGE_SHIFT (FUSE_BLOCK_SHIFT - PAGE_CACHE_SHIFT) -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) -#error Kernel version 2.5.* not supported -#endif - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) -#define KERNEL_2_6 -#endif - - /** * A Fuse connection. * -- cgit v1.2.3