Fix compile error under 2.6, check for newer versions first or all the

checks wont be considered.
This commit is contained in:
Glenn L McGrath 2004-06-25 07:47:03 +00:00
parent 5f2a23c3c6
commit d9670461c4

View File

@ -31,10 +31,10 @@
* so we get to try and cope as best we can... */
#include <linux/version.h>
#include <asm/posix_types.h>
#if LINUX_VERSION_CODE >= 132608
#define __bb_kernel_dev_t __kernel_old_dev_t
#elif LINUX_VERSION_CODE >= 0x20600
#if LINUX_VERSION_CODE >= 0x20600
#define __bb_kernel_dev_t __kernel_dev_t
#elif LINUX_VERSION_CODE >= 132608
#define __bb_kernel_dev_t __kernel_old_dev_t
#else
#define __bb_kernel_dev_t unsigned short
#endif