From e78b636eba9d23e9f5f066b022bd5640c85409be Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Sat, 27 Sep 2014 21:03:17 +0400 Subject: [PATCH] Ticket #3267: mc fails to build against musl libc. mc fails to build when using musl as the libc provider. This is due to the CTRL() macro not being defined in . We could include explicitly but it's easier just to ensure CTRL is defined. This patch taken from the Sabotage Linux distro which fixes this. This patch has also been tested and works with the OpenEmbedded build system. Signed-off-by: Andrew Borodin --- lib/tty/tty-ncurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tty/tty-ncurses.c b/lib/tty/tty-ncurses.c index 8c385ea79..27e771a79 100644 --- a/lib/tty/tty-ncurses.c +++ b/lib/tty/tty-ncurses.c @@ -66,7 +66,7 @@ /*** file scope macro definitions ****************************************************************/ -#if defined(_AIX) && !defined(CTRL) +#if !defined(CTRL) #define CTRL(x) ((x) & 0x1f) #endif