summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorEric Andersen2000-09-21 02:04:51 +0000
committerEric Andersen2000-09-21 02:04:51 +0000
commit624cc771da4ac5f15ec16a2b0f10feeef0b125c7 (patch)
tree159ab99cb2f1e14218204306c1be24f0b6c85745 /utility.c
parent8847b9a03afd59a4d4f833be12937b38216799d3 (diff)
downloadbusybox-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.zip
busybox-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.tar.gz
More portable handling of loop header files, as done in util-linux
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/utility.c b/utility.c
index 8c3c5e5..719cd98 100644
--- a/utility.c
+++ b/utility.c
@@ -53,11 +53,6 @@
#include <sys/ioctl.h>
#include <sys/utsname.h> /* for uname(2) */
-#if defined BB_FEATURE_MOUNT_LOOP
-#include <fcntl.h>
-#include <linux/loop.h> /* Pull in loop device support */
-#endif
-
/* Busybox mount uses either /proc/filesystems or /dev/mtab to get the
* list of available filesystems used for the -t auto option */
#if defined BB_FEATURE_USE_PROCFS && defined BB_FEATURE_USE_DEVPS_PATCH
@@ -1459,7 +1454,11 @@ extern int vdprintf(int d, const char *format, va_list ap)
}
#endif /* BB_SYSLOGD */
+
#if defined BB_FEATURE_MOUNT_LOOP
+#include <fcntl.h>
+#include "loop.h" /* Pull in loop device support */
+
extern int del_loop(const char *device)
{
int fd;