]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS:353: correct #if check for libedit function capability
authorBrian West <brian@freeswitch.org>
Mon, 24 Mar 2014 21:17:59 +0000 (16:17 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 24 Mar 2014 21:18:03 +0000 (16:18 -0500)
libs/esl/fs_cli.c

index 0053776aaee5479b6c3f146459704c2d1b0d3629..3d0a8b65c98246f3cc114b7905bf900575cd422d 100644 (file)
@@ -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);