diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-23 01:08:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-23 01:08:26 +0100 |
commit | 1497484839efd4c57d63c07e2b92413193a3977f (patch) | |
tree | 5287750a4c55b433f73c3636d8aa8cffe6ecc71b /shell/ash.c | |
parent | 85dbf190c69f747cea3f8cdabecb3464ab1351be (diff) | |
download | busybox-w32-1497484839efd4c57d63c07e2b92413193a3977f.tar.gz busybox-w32-1497484839efd4c57d63c07e2b92413193a3977f.tar.bz2 busybox-w32-1497484839efd4c57d63c07e2b92413193a3977f.zip |
ash,hush: make it possible to build them individually
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index ce82a965c..e2851305b 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -43,8 +43,6 @@ | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #include "busybox.h" /* for applet_names */ | 45 | #include "busybox.h" /* for applet_names */ |
46 | //TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN? | ||
47 | //#include "applet_tables.h" doesn't work | ||
48 | #include <paths.h> | 46 | #include <paths.h> |
49 | #include <setjmp.h> | 47 | #include <setjmp.h> |
50 | #include <fnmatch.h> | 48 | #include <fnmatch.h> |
@@ -59,12 +57,15 @@ | |||
59 | # define CLEAR_RANDOM_T(rnd) ((void)0) | 57 | # define CLEAR_RANDOM_T(rnd) ((void)0) |
60 | #endif | 58 | #endif |
61 | 59 | ||
62 | #if defined SINGLE_APPLET_MAIN | 60 | #define SKIP_definitions 1 |
61 | #include "applet_tables.h" | ||
62 | #undef SKIP_definitions | ||
63 | #if NUM_APPLETS == 1 | ||
63 | /* STANDALONE does not make sense, and won't compile */ | 64 | /* STANDALONE does not make sense, and won't compile */ |
64 | # undef CONFIG_FEATURE_SH_STANDALONE | 65 | # undef CONFIG_FEATURE_SH_STANDALONE |
65 | # undef ENABLE_FEATURE_SH_STANDALONE | 66 | # undef ENABLE_FEATURE_SH_STANDALONE |
66 | # undef IF_FEATURE_SH_STANDALONE | 67 | # undef IF_FEATURE_SH_STANDALONE |
67 | # undef IF_NOT_FEATURE_SH_STANDALONE(...) | 68 | # undef IF_NOT_FEATURE_SH_STANDALONE |
68 | # define ENABLE_FEATURE_SH_STANDALONE 0 | 69 | # define ENABLE_FEATURE_SH_STANDALONE 0 |
69 | # define IF_FEATURE_SH_STANDALONE(...) | 70 | # define IF_FEATURE_SH_STANDALONE(...) |
70 | # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ | 71 | # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ |