summaryrefslogtreecommitdiff
path: root/libbb/loop.c
diff options
context:
space:
mode:
authorPaul Fox2005-07-22 19:58:32 +0000
committerPaul Fox2005-07-22 19:58:32 +0000
commit14290179688f7aa2d9c57dc4e9987d72a6e8a3b8 (patch)
tree4fbccd4b880e676e7ee070a7f979ef69909641f6 /libbb/loop.c
parent37dd6247ddf358dcebafc4f0d5dad5b835dc9b5f (diff)
downloadbusybox-14290179688f7aa2d9c57dc4e9987d72a6e8a3b8.zip
busybox-14290179688f7aa2d9c57dc4e9987d72a6e8a3b8.tar.gz
ifdef all of loop.c with CONFIG_FEATURE_MOUNT_LOOP. won't
compile due to CONFIG_FEATURE_MOUNT_LOOP_MAX otherwise. reported by Stephane Billiart.
Diffstat (limited to 'libbb/loop.c')
-rw-r--r--libbb/loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 19bbf36..a4e1ffb 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifdef CONFIG_FEATURE_MOUNT_LOOP
#include <features.h>
#if defined (__GLIBC__) && !defined(__UCLIBC__)
#include <linux/posix_types.h>
@@ -148,6 +149,7 @@ extern char *find_unused_loop_device(void)
}
return NULL;
}
+#endif
/* END CODE */