From: Brian West Date: Mon, 24 Mar 2014 21:17:59 +0000 (-0500) Subject: FS:353: correct #if check for libedit function capability X-Git-Tag: v1.5.12~316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7bd862e9a75afea84153e98ebd72919e3ec9d42;p=thirdparty%2Ffreeswitch.git FS:353: correct #if check for libedit function capability --- 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);