From c7bd862e9a75afea84153e98ebd72919e3ec9d42 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 24 Mar 2014 16:17:59 -0500 Subject: [PATCH] FS:353: correct #if check for libedit function capability --- libs/esl/fs_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 0053776aae..3d0a8b65c9 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -1512,7 +1512,7 @@ int main(int argc, char *argv[]) } bare_prompt_str_len = (int)strlen(bare_prompt_str); if (feature_level) { -#ifdef HAVE_DECL_EL_PROMPT_ESC +#if HAVE_DECL_EL_PROMPT_ESC snprintf(prompt_str, sizeof(prompt_str), "\1%s\1%s\1%s\1", prompt_color, bare_prompt_str, input_text_color); #else snprintf(prompt_str, sizeof(prompt_str), "%s%s%s", prompt_color, bare_prompt_str, input_text_color); @@ -1578,7 +1578,7 @@ int main(int argc, char *argv[]) #ifdef HAVE_LIBEDIT el = el_init(__FILE__, stdin, stdout, stderr); -#ifdef HAVE_DECL_EL_PROMPT_ESC +#if HAVE_DECL_EL_PROMPT_ESC el_set(el, EL_PROMPT_ESC, &prompt, '\1'); #else el_set(el, EL_PROMPT, &prompt);