summaryrefslogtreecommitdiff
path: root/libbb/loop.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-03-08 23:10:23 +0100
committerDenys Vlasenko2010-03-08 23:10:23 +0100
commit41d8134511d93f5bcfa7ccadb6de6c553f90422e (patch)
tree70cdca599d5be125fee040d36f49df289015c845 /libbb/loop.c
parent79950a6bbe080441fbffc450e1e75f103e968839 (diff)
downloadbusybox-41d8134511d93f5bcfa7ccadb6de6c553f90422e.zip
busybox-41d8134511d93f5bcfa7ccadb6de6c553f90422e.tar.gz
libbb/loop.c: move #include to its user, improve comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/loop.c')
-rw-r--r--libbb/loop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 07d16e0..7a551a4 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -8,14 +8,12 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "libbb.h"
-#include "fix_u32.h" /* hack, so we may include kernel's linux/loop.h */
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
/* For 2.6, use the cleaned up header to get the 64 bit API. */
-/* linux/loop.h relies on __u64. Make sure we have that as a proper type
- * until userspace is widely fixed. */
+# include "fix_u32.h" /* some old toolchains need __u64 for linux/loop.h */
# include <linux/loop.h>
typedef struct loop_info64 bb_loop_info;
# define BB_LOOP_SET_STATUS LOOP_SET_STATUS64