[BusyBox] [PATCH] loop.c compilation

Stephane Billiart stephane.billiart at gmail.com
Fri Jul 22 09:02:46 UTC 2005


The latest libbb/loop.c does not compile when CONFIG_FEATURE_MOUNT_LOOP
is not set because then CONFIG_FEATURE_MOUNT_LOOP_MAX is unknown.
The attached patch fixes this by skiping the whole file in that case.

-- 
Stéphane Billiart
-------------- next part --------------
diff -ruN busybox/libbb/loop.c busybox.new/libbb/loop.c
--- busybox/libbb/loop.c	2005-07-20 07:28:37.000000000 +0200
+++ busybox.new/libbb/loop.c	2005-07-20 07:42:37.000000000 +0200
@@ -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 @@
 	}
 	return NULL;
 }
+#endif
 
 
 /* END CODE */


More information about the busybox mailing list