aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-25 01:36:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-25 01:36:03 +0000
commit61befda93b2ed2458c8db50d2d03cff453d36565 (patch)
treed8d9c76401d87b183bd99e7c2e82d6b6cd79f564 /shell
parent16898406724b99ec61d16b38393137bddd6ecc25 (diff)
downloadbusybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.tar.gz
busybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.tar.bz2
busybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.zip
ash,hush: add TODO for rare build failure
*: remove some redundant includes
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c14
-rw-r--r--shell/hush.c13
2 files changed, 25 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 55a79a7a6..66bfa67ba 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -53,11 +53,21 @@
53#endif 53#endif
54 54
55#include "busybox.h" /* for applet_names */ 55#include "busybox.h" /* for applet_names */
56//TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN?
57//#include "applet_tables.h" doesn't work
56#include <paths.h> 58#include <paths.h>
57#include <setjmp.h> 59#include <setjmp.h>
58#include <fnmatch.h> 60#include <fnmatch.h>
59#if JOBS || ENABLE_ASH_READ_NCHARS 61
60#include <termios.h> 62#if defined SINGLE_APPLET_MAIN
63/* STANDALONE does not make sense, and won't compile */
64#undef CONFIG_FEATURE_SH_STANDALONE
65#undef ENABLE_FEATURE_SH_STANDALONE
66#undef USE_FEATURE_SH_STANDALONE
67#undef SKIP_FEATURE_SH_STANDALONE(...)
68#define ENABLE_FEATURE_SH_STANDALONE 0
69#define USE_FEATURE_SH_STANDALONE(...)
70#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
61#endif 71#endif
62 72
63#ifndef PIPE_BUF 73#ifndef PIPE_BUF
diff --git a/shell/hush.c b/shell/hush.c
index 421272971..eafcbb4c9 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -67,6 +67,8 @@
67 */ 67 */
68 68
69#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */ 69#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */
70//TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN?
71//#include "applet_tables.h" doesn't work
70#include <glob.h> 72#include <glob.h>
71/* #include <dmalloc.h> */ 73/* #include <dmalloc.h> */
72#if ENABLE_HUSH_CASE 74#if ENABLE_HUSH_CASE
@@ -75,6 +77,17 @@
75 77
76#define HUSH_VER_STR "0.91" 78#define HUSH_VER_STR "0.91"
77 79
80#if defined SINGLE_APPLET_MAIN
81/* STANDALONE does not make sense, and won't compile */
82#undef CONFIG_FEATURE_SH_STANDALONE
83#undef ENABLE_FEATURE_SH_STANDALONE
84#undef USE_FEATURE_SH_STANDALONE
85#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
86#define ENABLE_FEATURE_SH_STANDALONE 0
87#define USE_FEATURE_SH_STANDALONE(...)
88#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
89#endif
90
78#if !BB_MMU && ENABLE_HUSH_TICK 91#if !BB_MMU && ENABLE_HUSH_TICK
79//#undef ENABLE_HUSH_TICK 92//#undef ENABLE_HUSH_TICK
80//#define ENABLE_HUSH_TICK 0 93//#define ENABLE_HUSH_TICK 0