From b0737882e275d23a9ee0909830a75900c0d916c0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 12 Feb 2014 15:38:02 +0100 Subject: fix musl compile, update to latest stable upstream version --- package/mc/patches/patch-lib_tty_tty-ncurses_c | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/mc/patches/patch-lib_tty_tty-ncurses_c (limited to 'package/mc/patches/patch-lib_tty_tty-ncurses_c') diff --git a/package/mc/patches/patch-lib_tty_tty-ncurses_c b/package/mc/patches/patch-lib_tty_tty-ncurses_c new file mode 100644 index 000000000..5058bd79e --- /dev/null +++ b/package/mc/patches/patch-lib_tty_tty-ncurses_c @@ -0,0 +1,27 @@ +--- mc-4.8.11.orig/lib/tty/tty-ncurses.c 2013-11-29 19:27:07.000000000 +0100 ++++ mc-4.8.11/lib/tty/tty-ncurses.c 2014-02-12 12:40:05.000000000 +0100 +@@ -65,7 +65,7 @@ + + /*** file scope macro definitions ****************************************************************/ + +-#if defined(_AIX) && !defined(CTRL) ++#if !defined(CTRL) + #define CTRL(x) ((x) & 0x1f) + #endif + +@@ -530,6 +530,7 @@ tty_print_anychar (int c) + if (mc_global.utf8_display || c > 255) + { + int res; ++ unsigned char str[UTF8_CHAR_LEN + 1]; + + res = g_unichar_to_utf8 (c, (char *) str); + if (res == 0) +@@ -540,7 +541,6 @@ tty_print_anychar (int c) + } + else + { +- unsigned char str[UTF8_CHAR_LEN + 1]; + const char *s; + + str[res] = '\0'; -- cgit v1.2.3