Skip to contentSkip to conversation

uemacs: remove XCASE flag to allow musl builds

PATCH New Alex Suykov 2 participants 2 messages Nov 28, 2015 – Nov 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uemacs: remove XCASE flag to allow musl builds

Fixes
http://autobuild.buildroot.net/results/e92/e929de08954684e275a2f682264551b6cb07886a/

---
 package/uemacs/02-skip-xcase-termios-flag.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/uemacs/02-skip-xcase-termios-flag.patch
package/uemacs/02-skip-xcase-termios-flag.patch new file +16 -0
new file mode 100644
index 0000000..2cc5357
@@ -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 <[email protected]>
+
+--- 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);
+ 
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 uemacs: remove XCASE flag to allow musl builds

Dear Alex Suykov,

Quoted 8 lines · Alex Suykov

Fixes
http://autobuild.buildroot.net/results/e92/e929de08954684e275a2f682264551b6cb07886a/

---
 package/uemacs/02-skip-xcase-termios-flag.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/uemacs/02-skip-xcase-termios-flag.patch

Applied, thanks. Could you send this patch (and the other existing patch) to the upstream project?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com