summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath2004-06-25 07:47:03 +0000
committerGlenn L McGrath2004-06-25 07:47:03 +0000
commitd9670461c40fcd3f2e3aba8f60d71407d5d81883 (patch)
treedf8f3a05094340c807681a234ad880ec11a6be42 /libbb
parent5f2a23c3c6f1a18bc8985c1cb4e860217d4d8467 (diff)
downloadbusybox-d9670461c40fcd3f2e3aba8f60d71407d5d81883.zip
busybox-d9670461c40fcd3f2e3aba8f60d71407d5d81883.tar.gz
Fix compile error under 2.6, check for newer versions first or all the
checks wont be considered.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/loop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 81d1f0a..42720d3 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 <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