]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
asterisk.c: Fix #if HAVE_LIBEDIT_IS_UNICODE.
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 22 Apr 2026 17:03:46 +0000 (11:03 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 22 Apr 2026 19:43:10 +0000 (19:43 +0000)
Line 2729 has `#if HAVE_LIBEDIT_IS_UNICODE` instead if `#ifdef`.  Since
macros defined by autoconf are either set to `1` or not set at all,
older distros where libedit isn't unicode won't have that macro defined
and will fail to compile.

Resolves: #1896

main/asterisk.c

index 20421eb268206d870efe4baf24fab7d95cbf1a27..febee957d38f174a1a09f57dd8550f238ead3974 100644 (file)
@@ -2726,7 +2726,7 @@ static int ast_el_read_char(EditLine *editline, CHAR_T_LIBEDIT *cp)
                }
 
                if (!ast_opt_exec && fds[1].revents) {
-#if HAVE_LIBEDIT_IS_UNICODE
+#ifdef HAVE_LIBEDIT_IS_UNICODE
                        num_read = editline_read_char(editline, cp);
                        if (num_read < 1) {
                                break;