[BusyBox] some minor compile bugs that you probably already know about

Dan Kegel dank at kegel.com
Fri Mar 15 10:28:03 UTC 2002


Todd Hansen wrote:
> 
> In the latest distribution of busybox, but I didn't test the latest
> snapshot, there is a missing include in mount.c and umount.c
> 
> #include<sys/param.h>
> 
> else I get:
> 
> arm-linux-gcc -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE
> -DBB_VER='"0.60.2"' -DBB_BT='"2002.03.15-17:09+0000"' -DUSE_SYSTEM_PWD_GRP
> -I.  -c umount.c -o umount.o
> umount.c: In function `umount_main':
> umount.c:244: `PATH_MAX' undeclared (first use in this function)

Yup.  I always apply the following patch:

diff -aur busybox-0.60.2.orig/mount.c busybox-0.60.2/mount.c
--- busybox-0.60.2.orig/mount.c Thu Jan 24 14:53:53 2002
+++ busybox-0.60.2/mount.c      Thu Jan 24 14:54:36 2002
@@ -44,6 +44,7 @@
  */

 #include <limits.h>
+#include <sys/param.h> /* for PATH_MAX on systems that don't have it in limits.h */
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
diff -aur busybox-0.60.2.orig/umount.c busybox-0.60.2/umount.c
--- busybox-0.60.2.orig/umount.c        Thu Jan 24 14:53:53 2002
+++ busybox-0.60.2/umount.c     Thu Jan 24 15:59:54 2002
@@ -23,6 +23,7 @@
  */

 #include <limits.h>
+#include <sys/param.h> /* for PATH_MAX on systems that don't have it in limits.h */
 #include <stdio.h>
 #include <mntent.h>
 #include <errno.h>



More information about the busybox mailing list