aboutsummaryrefslogtreecommitdiff
path: root/package/uemacs
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-11-29 00:15:53 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-29 14:29:25 +0100
commit03e75132b7ec6d90563c00350993e6178e9d4684 (patch)
tree3be9694e2d1a0ce0fb86a8b432ecf728e2c22ce5 /package/uemacs
parentf58cf6ddb25b347571ddb62c796a0545bbfc9805 (diff)
downloadbuildroot-03e75132b7ec6d90563c00350993e6178e9d4684.tar.gz
buildroot-03e75132b7ec6d90563c00350993e6178e9d4684.tar.bz2
uemacs: remove XCASE flag to allow musl builds
Fixes http://autobuild.buildroot.net/results/e92/e929de08954684e275a2f682264551b6cb07886a/ Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/uemacs')
-rw-r--r--package/uemacs/02-skip-xcase-termios-flag.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/uemacs/02-skip-xcase-termios-flag.patch b/package/uemacs/02-skip-xcase-termios-flag.patch
new file mode 100644
index 0000000000..2cc53579c7
--- /dev/null
+++ b/package/uemacs/02-skip-xcase-termios-flag.patch
@@ -0,0 +1,16 @@
+From termios(3): "XCASE (not in POSIX; not supported under Linux)".
+musl does not define it, and even if defined it's a no-op.
+
+Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
+
+--- a/posix.c
++++ b/posix.c
+@@ -65,7 +65,7 @@
+ ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
+
+ /* No signal handling, no echo etc */
+- ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
++ ntermios.c_lflag &= ~(ISIG | ICANON | ECHO | ECHOE | ECHOK
+ | ECHONL | NOFLSH | TOSTOP | ECHOCTL |
+ ECHOPRT | ECHOKE | FLUSHO | PENDIN | IEXTEN);
+