mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-02 16:35:29 +03:00
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 <termios.h>. We could include <sys/ttydefaults.h> 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 <aborodin@vmail.ru>
This commit is contained in:
parent
9b7fcb8b24
commit
e78b636eba
@ -66,7 +66,7 @@
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
||||
#if defined(_AIX) && !defined(CTRL)
|
||||
#if !defined(CTRL)
|
||||
#define CTRL(x) ((x) & 0x1f)
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user