diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-09-21 02:04:51 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-09-21 02:04:51 +0000 |
commit | 624cc771da4ac5f15ec16a2b0f10feeef0b125c7 (patch) | |
tree | 159ab99cb2f1e14218204306c1be24f0b6c85745 /utility.c | |
parent | 8847b9a03afd59a4d4f833be12937b38216799d3 (diff) | |
download | busybox-w32-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.tar.gz busybox-w32-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.tar.bz2 busybox-w32-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.zip |
More portable handling of loop header files, as done in util-linux
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -53,11 +53,6 @@ | |||
53 | #include <sys/ioctl.h> | 53 | #include <sys/ioctl.h> |
54 | #include <sys/utsname.h> /* for uname(2) */ | 54 | #include <sys/utsname.h> /* for uname(2) */ |
55 | 55 | ||
56 | #if defined BB_FEATURE_MOUNT_LOOP | ||
57 | #include <fcntl.h> | ||
58 | #include <linux/loop.h> /* Pull in loop device support */ | ||
59 | #endif | ||
60 | |||
61 | /* Busybox mount uses either /proc/filesystems or /dev/mtab to get the | 56 | /* Busybox mount uses either /proc/filesystems or /dev/mtab to get the |
62 | * list of available filesystems used for the -t auto option */ | 57 | * list of available filesystems used for the -t auto option */ |
63 | #if defined BB_FEATURE_USE_PROCFS && defined BB_FEATURE_USE_DEVPS_PATCH | 58 | #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) | |||
1459 | } | 1454 | } |
1460 | #endif /* BB_SYSLOGD */ | 1455 | #endif /* BB_SYSLOGD */ |
1461 | 1456 | ||
1457 | |||
1462 | #if defined BB_FEATURE_MOUNT_LOOP | 1458 | #if defined BB_FEATURE_MOUNT_LOOP |
1459 | #include <fcntl.h> | ||
1460 | #include "loop.h" /* Pull in loop device support */ | ||
1461 | |||
1463 | extern int del_loop(const char *device) | 1462 | extern int del_loop(const char *device) |
1464 | { | 1463 | { |
1465 | int fd; | 1464 | int fd; |