Applied patch from David Douthitt to fix build error in df.c when
[oweals/busybox.git] / init.c
diff --git a/init.c b/init.c
index 4284600c415b9c08c555f73a5eedcdda16494130..0620e1ea1e2432c6f6b5864fca690ce360929258 100644 (file)
--- a/init.c
+++ b/init.c
@@ -93,8 +93,9 @@ static const int RB_AUTOBOOT = 0x01234567;
 #endif
 #endif
 
-#undef _PATH_STDPATH
+#ifndef _PATH_STDPATH
 #define _PATH_STDPATH  "/usr/bin:/bin:/usr/sbin:/sbin"
+#endif
 
 
 #if defined BB_FEATURE_INIT_COREDUMPS
@@ -133,7 +134,8 @@ static _syscall2(int, bdflush, int, func, int, data);
 #define INIT_SCRIPT  "/etc/init.d/rcS"   /* Default sysinit script. */
 #endif
 
-static const int MAXENV = 16;  /* Number of env. vars */
+#define MAXENV 16              /* Number of env. vars */
+//static const int MAXENV = 16;        /* Number of env. vars */
 static const int LOG = 0x1;
 static const int CONSOLE = 0x2;