diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-08 23:10:23 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-08 23:10:23 +0100 |
commit | 41d8134511d93f5bcfa7ccadb6de6c553f90422e (patch) | |
tree | 70cdca599d5be125fee040d36f49df289015c845 | |
parent | 79950a6bbe080441fbffc450e1e75f103e968839 (diff) | |
download | busybox-w32-41d8134511d93f5bcfa7ccadb6de6c553f90422e.tar.gz busybox-w32-41d8134511d93f5bcfa7ccadb6de6c553f90422e.tar.bz2 busybox-w32-41d8134511d93f5bcfa7ccadb6de6c553f90422e.zip |
libbb/loop.c: move #include to its user, improve comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index 07d16e011..7a551a41b 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -8,14 +8,12 @@ | |||
8 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 8 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
9 | */ | 9 | */ |
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include "fix_u32.h" /* hack, so we may include kernel's linux/loop.h */ | ||
12 | #include <linux/version.h> | 11 | #include <linux/version.h> |
13 | 12 | ||
14 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) | 13 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) |
15 | 14 | ||
16 | /* For 2.6, use the cleaned up header to get the 64 bit API. */ | 15 | /* For 2.6, use the cleaned up header to get the 64 bit API. */ |
17 | /* linux/loop.h relies on __u64. Make sure we have that as a proper type | 16 | # include "fix_u32.h" /* some old toolchains need __u64 for linux/loop.h */ |
18 | * until userspace is widely fixed. */ | ||
19 | # include <linux/loop.h> | 17 | # include <linux/loop.h> |
20 | typedef struct loop_info64 bb_loop_info; | 18 | typedef struct loop_info64 bb_loop_info; |
21 | # define BB_LOOP_SET_STATUS LOOP_SET_STATUS64 | 19 | # define BB_LOOP_SET_STATUS LOOP_SET_STATUS64 |