uemacs: remove XCASE flag to allow musl builds
authorAlex Suykov <alex.suykov@gmail.com>
Sat, 28 Nov 2015 22:15:53 +0000 (00:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Nov 2015 13:29:25 +0000 (14:29 +0100)
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>
package/uemacs/02-skip-xcase-termios-flag.patch [new file with mode: 0644]

diff --git a/package/uemacs/02-skip-xcase-termios-flag.patch b/package/uemacs/02-skip-xcase-termios-flag.patch
new file mode 100644 (file)
index 0000000..2cc5357
--- /dev/null
@@ -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);