diff options
Diffstat (limited to '')
-rw-r--r-- | shell/ash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index e8a1e853c..dd806b629 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -10554,7 +10554,7 @@ evalpipe(union node *n, int flags) | |||
10554 | } | 10554 | } |
10555 | 10555 | ||
10556 | /* setinteractive needs this forward reference */ | 10556 | /* setinteractive needs this forward reference */ |
10557 | #if EDITING_HAS_get_exe_name | 10557 | #if ENABLE_FEATURE_EDITING |
10558 | static const char *get_builtin_name(int i) FAST_FUNC; | 10558 | static const char *get_builtin_name(int i) FAST_FUNC; |
10559 | #endif | 10559 | #endif |
10560 | 10560 | ||
@@ -10591,9 +10591,8 @@ setinteractive(int on) | |||
10591 | #if ENABLE_FEATURE_EDITING | 10591 | #if ENABLE_FEATURE_EDITING |
10592 | if (!line_input_state) { | 10592 | if (!line_input_state) { |
10593 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); | 10593 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); |
10594 | # if EDITING_HAS_get_exe_name | ||
10595 | line_input_state->get_exe_name = get_builtin_name; | 10594 | line_input_state->get_exe_name = get_builtin_name; |
10596 | # endif | 10595 | line_input_state->sh_get_var = lookupvar; |
10597 | } | 10596 | } |
10598 | #endif | 10597 | #endif |
10599 | } | 10598 | } |
@@ -11096,7 +11095,7 @@ find_builtin(const char *name) | |||
11096 | return bp; | 11095 | return bp; |
11097 | } | 11096 | } |
11098 | 11097 | ||
11099 | #if EDITING_HAS_get_exe_name | 11098 | #if ENABLE_FEATURE_EDITING |
11100 | static const char * FAST_FUNC | 11099 | static const char * FAST_FUNC |
11101 | get_builtin_name(int i) | 11100 | get_builtin_name(int i) |
11102 | { | 11101 | { |