diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 |