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:
Paul Barker 2014-09-27 21:03:17 +04:00 committed by Andrew Borodin
parent 9b7fcb8b24
commit e78b636eba

View File

@ -66,7 +66,7 @@
/*** file scope macro definitions ****************************************************************/
#if defined(_AIX) && !defined(CTRL)
#if !defined(CTRL)
#define CTRL(x) ((x) & 0x1f)
#endif