hush: fix build failure if FEATURE_EDITING=y && !HUSH_INTERACTIVE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -850,7 +850,7 @@ static int builtin_jobs(char **argv) FAST_FUNC;
|
|||||||
#if ENABLE_HUSH_HELP
|
#if ENABLE_HUSH_HELP
|
||||||
static int builtin_help(char **argv) FAST_FUNC;
|
static int builtin_help(char **argv) FAST_FUNC;
|
||||||
#endif
|
#endif
|
||||||
#if MAX_HISTORY
|
#if MAX_HISTORY && ENABLE_FEATURE_EDITING
|
||||||
static int builtin_history(char **argv) FAST_FUNC;
|
static int builtin_history(char **argv) FAST_FUNC;
|
||||||
#endif
|
#endif
|
||||||
#if ENABLE_HUSH_LOCAL
|
#if ENABLE_HUSH_LOCAL
|
||||||
@ -922,7 +922,7 @@ static const struct built_in_command bltins1[] = {
|
|||||||
#if ENABLE_HUSH_HELP
|
#if ENABLE_HUSH_HELP
|
||||||
BLTIN("help" , builtin_help , NULL),
|
BLTIN("help" , builtin_help , NULL),
|
||||||
#endif
|
#endif
|
||||||
#if MAX_HISTORY
|
#if MAX_HISTORY && ENABLE_FEATURE_EDITING
|
||||||
BLTIN("history" , builtin_history , "Show command history"),
|
BLTIN("history" , builtin_history , "Show command history"),
|
||||||
#endif
|
#endif
|
||||||
#if ENABLE_HUSH_JOB
|
#if ENABLE_HUSH_JOB
|
||||||
@ -8633,7 +8633,7 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MAX_HISTORY
|
#if MAX_HISTORY && ENABLE_FEATURE_EDITING
|
||||||
static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM)
|
static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM)
|
||||||
{
|
{
|
||||||
show_history(G.line_input_state);
|
show_history(G.line_input_state);
|
||||||
|
Reference in New Issue
Block a user