summaryrefslogtreecommitdiffstats
path: root/recipes-extended/mc/mc/mc-CTRL.patch
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2017-08-18 05:29:42 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 23:58:48 +0100
commit5396115fe36e0c88b65f0b0770569ff65793dd45 (patch)
tree27f46aff43d350a03d5cb30630904182d23f73fc /recipes-extended/mc/mc/mc-CTRL.patch
parentcc59f9faa713cee1518538fc5a9d8c6b54945911 (diff)
downloadmeta-gplv2-5396115fe36e0c88b65f0b0770569ff65793dd45.tar.gz
Revert "mc: Drop from meta-gplv2 as incompatible with newer ncurses versions"
This reverts commit ec80d2cac67a952b06ed27fbd4d71f17641e9a7c. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'recipes-extended/mc/mc/mc-CTRL.patch')
-rw-r--r--recipes-extended/mc/mc/mc-CTRL.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-extended/mc/mc/mc-CTRL.patch b/recipes-extended/mc/mc/mc-CTRL.patch
new file mode 100644
index 0000000..ee4ba9f
--- /dev/null
+++ b/recipes-extended/mc/mc/mc-CTRL.patch
@@ -0,0 +1,31 @@
1Fix build with musl by ensuring CTRL is defined.
2
3musl does not define CTRL in <termios.h>, we could include <sys/ttydefaults.h>
4explicitly but it's easier just to ensure CTRL is defined.
5
6This patch is taken from Sabotage Linux, the license statement for patches and
7build scripts in Sabotage Linux says:
8
9 To the extent possible under law, Christian Neukirchen has waived
10 all copyright and related or neighboring rights to this work.
11
12 http://creativecommons.org/publicdomain/zero/1.0/
13
14Therefore this should be good to include in OpenEmbedded.
15
16Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
17
18Upstream-Status: Accepted (should be included in v4.8.14)
19
20diff -u mc-4.8.1.7.org/lib/tty/tty-ncurses.c mc-4.8.1.7/lib/tty/tty-ncurses.c
21--- mc-4.8.1.7.org/lib/tty/tty-ncurses.c
22+++ mc-4.8.1.7/lib/tty/tty-ncurses.c
23@@ -65,7 +65,7 @@
24
25 /*** file scope macro definitions ****************************************************************/
26
27-#if defined(_AIX) && !defined(CTRL)
28+#if !defined(CTRL)
29 #define CTRL(x) ((x) & 0x1f)
30 #endif
31