Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-01-03 10:28:16 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2023-01-03 10:28:16 +0300
commit27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab (patch)
treebf56f6d0d922cf3eefb0e413e9326a2e60373dd8 /include
parent8ed57db65ba66709d3b4061c4f03766f1fe58780 (diff)
shell: fix compile failures in some configs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 19ed9ec09..cca33a177 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1939,9 +1939,15 @@ typedef struct line_input_t {
# if ENABLE_SHELL_ASH || ENABLE_SHELL_HUSH
/* function to fetch additional application-specific names to match */
get_exe_name_t *get_exe_name;
+# endif
+# endif
+# if (ENABLE_FEATURE_USERNAME_COMPLETION || ENABLE_FEATURE_EDITING_FANCY_PROMPT) \
+ && (ENABLE_SHELL_ASH || ENABLE_SHELL_HUSH)
/* function to fetch value of shell variable */
sh_get_var_t *sh_get_var;
-# endif
+# define EDITING_HAS_sh_get_var 1
+# else
+# define EDITING_HAS_sh_get_var 0
# endif
# if MAX_HISTORY
int cnt_history;