diff options
author | Denys Vlasenko | 2010-03-23 01:08:26 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-03-23 01:08:26 +0100 |
commit | 1497484839efd4c57d63c07e2b92413193a3977f (patch) | |
tree | 5287750a4c55b433f73c3636d8aa8cffe6ecc71b /shell/hush.c | |
parent | 85dbf190c69f747cea3f8cdabecb3464ab1351be (diff) | |
download | busybox-1497484839efd4c57d63c07e2b92413193a3977f.zip busybox-1497484839efd4c57d63c07e2b92413193a3977f.tar.gz |
ash,hush: make it possible to build them individually
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index 6f391b8..048085b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -125,14 +125,18 @@ # define USE_FOR_MMU(...) #endif -#if defined SINGLE_APPLET_MAIN +#define SKIP_definitions 1 +#include "applet_tables.h" +#undef SKIP_definitions +#if NUM_APPLETS == 1 /* STANDALONE does not make sense, and won't compile */ # undef CONFIG_FEATURE_SH_STANDALONE # undef ENABLE_FEATURE_SH_STANDALONE # undef IF_FEATURE_SH_STANDALONE +# undef IF_NOT_FEATURE_SH_STANDALONE +# define ENABLE_FEATURE_SH_STANDALONE 0 # define IF_FEATURE_SH_STANDALONE(...) # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ -# define ENABLE_FEATURE_SH_STANDALONE 0 #endif #if !ENABLE_HUSH_INTERACTIVE |