diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-03 08:28:16 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-03 08:28:16 +0100 |
commit | 27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab (patch) | |
tree | bf56f6d0d922cf3eefb0e413e9326a2e60373dd8 /shell/ash.c | |
parent | 8ed57db65ba66709d3b4061c4f03766f1fe58780 (diff) | |
download | busybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.tar.gz busybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.tar.bz2 busybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.zip |
shell: fix compile failures in some configs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 326f8b2a9..99fdbce7b 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -9736,7 +9736,7 @@ evalpipe(union node *n, int flags) | |||
9736 | } | 9736 | } |
9737 | 9737 | ||
9738 | /* setinteractive needs this forward reference */ | 9738 | /* setinteractive needs this forward reference */ |
9739 | #if ENABLE_FEATURE_EDITING | 9739 | #if ENABLE_FEATURE_TAB_COMPLETION |
9740 | static const char *get_builtin_name(int i) FAST_FUNC; | 9740 | static const char *get_builtin_name(int i) FAST_FUNC; |
9741 | #endif | 9741 | #endif |
9742 | 9742 | ||
@@ -9773,8 +9773,12 @@ setinteractive(int on) | |||
9773 | #if ENABLE_FEATURE_EDITING | 9773 | #if ENABLE_FEATURE_EDITING |
9774 | if (!line_input_state) { | 9774 | if (!line_input_state) { |
9775 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); | 9775 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); |
9776 | # if ENABLE_FEATURE_TAB_COMPLETION | ||
9776 | line_input_state->get_exe_name = get_builtin_name; | 9777 | line_input_state->get_exe_name = get_builtin_name; |
9778 | # endif | ||
9779 | # if EDITING_HAS_sh_get_var | ||
9777 | line_input_state->sh_get_var = lookupvar; | 9780 | line_input_state->sh_get_var = lookupvar; |
9781 | # endif | ||
9778 | } | 9782 | } |
9779 | #endif | 9783 | #endif |
9780 | } | 9784 | } |
@@ -10283,7 +10287,7 @@ find_builtin(const char *name) | |||
10283 | return bp; | 10287 | return bp; |
10284 | } | 10288 | } |
10285 | 10289 | ||
10286 | #if ENABLE_FEATURE_EDITING | 10290 | #if ENABLE_FEATURE_TAB_COMPLETION |
10287 | static const char * FAST_FUNC | 10291 | static const char * FAST_FUNC |
10288 | get_builtin_name(int i) | 10292 | get_builtin_name(int i) |
10289 | { | 10293 | { |