From d9670461c40fcd3f2e3aba8f60d71407d5d81883 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 25 Jun 2004 07:47:03 +0000 Subject: [PATCH] Fix compile error under 2.6, check for newer versions first or all the checks wont be considered. --- libbb/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libbb/loop.c b/libbb/loop.c index 81d1f0ab6..42720d3cb 100644 --- a/libbb/loop.c +++ b/libbb/loop.c @@ -31,10 +31,10 @@ * so we get to try and cope as best we can... */ #include #include -#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