[BusyBox-cvs] CVS update of busybox/libbb (loop.c)

Glenn McGrath bug1 at codepoet.org
Fri Jun 25 07:47:03 UTC 2004


    Date: Friday, June 25, 2004 @ 01:47:03
  Author: bug1
    Path: /var/cvs/busybox/libbb

Modified: loop.c (1.8 -> 1.9)

Fix compile error under 2.6, check for newer versions first or all the 
checks wont be considered.


Index: busybox/libbb/loop.c
diff -u busybox/libbb/loop.c:1.8 busybox/libbb/loop.c:1.9
--- busybox/libbb/loop.c:1.8	Mon Mar 15 01:28:42 2004
+++ busybox/libbb/loop.c	Fri Jun 25 01:47:03 2004
@@ -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



More information about the busybox-cvs mailing list