aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2016-08-24 18:49:42 +0200
committerGitHub <noreply@github.com>2016-08-24 18:49:42 +0200
commitfef30a4e67878a1447ac76145fd6addf8e9fecc0 (patch)
tree780623f11099b78da51ff86f861f12baa6f9235f /toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch
parent166656b1bde4dd4272a631512f226276c3a81d26 (diff)
parentc1858411e0c722d04f08d1caf7af5cb33a2f150f (diff)
downloadmaster-187ad058-fef30a4e67878a1447ac76145fd6addf8e9fecc0.tar.gz
master-187ad058-fef30a4e67878a1447ac76145fd6addf8e9fecc0.tar.bz2
master-187ad058-fef30a4e67878a1447ac76145fd6addf8e9fecc0.zip
Merge pull request #72 from szogi/master
musl: update musl to version 1.1.15, remove sh3 workaround
Diffstat (limited to 'toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch')
-rw-r--r--toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch b/toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch
new file mode 100644
index 0000000000..f3def26b2a
--- /dev/null
+++ b/toolchain/musl/patches/010-fix-regression-in-tcsetattr-on-all-mips-archs.patch
@@ -0,0 +1,67 @@
+From cff5747c74c41b22f1ce1340978b1c226a8cdf32 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Wed, 13 Jul 2016 15:04:30 -0400
+Subject: [PATCH] fix regression in tcsetattr on all mips archs
+
+revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
+and does not match how the kernel API works.
+---
+ arch/mips/bits/termios.h | 6 +++---
+ arch/mips64/bits/termios.h | 6 +++---
+ arch/mipsn32/bits/termios.h | 6 +++---
+ 4 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
+index f559f76..6a1205d 100644
+--- a/arch/mips/bits/termios.h
++++ b/arch/mips/bits/termios.h
+@@ -141,9 +141,9 @@ struct termios {
+ #define TCOFLUSH 1
+ #define TCIOFLUSH 2
+
+-#define TCSANOW 0x540e
+-#define TCSADRAIN 0x540f
+-#define TCSAFLUSH 0x5410
++#define TCSANOW 0
++#define TCSADRAIN 1
++#define TCSAFLUSH 2
+
+ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+ #define EXTA 0000016
+diff --git a/arch/mips64/bits/termios.h b/arch/mips64/bits/termios.h
+index f559f76..6a1205d 100644
+--- a/arch/mips64/bits/termios.h
++++ b/arch/mips64/bits/termios.h
+@@ -141,9 +141,9 @@ struct termios {
+ #define TCOFLUSH 1
+ #define TCIOFLUSH 2
+
+-#define TCSANOW 0x540e
+-#define TCSADRAIN 0x540f
+-#define TCSAFLUSH 0x5410
++#define TCSANOW 0
++#define TCSADRAIN 1
++#define TCSAFLUSH 2
+
+ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+ #define EXTA 0000016
+diff --git a/arch/mipsn32/bits/termios.h b/arch/mipsn32/bits/termios.h
+index f559f76..6a1205d 100644
+--- a/arch/mipsn32/bits/termios.h
++++ b/arch/mipsn32/bits/termios.h
+@@ -141,9 +141,9 @@ struct termios {
+ #define TCOFLUSH 1
+ #define TCIOFLUSH 2
+
+-#define TCSANOW 0x540e
+-#define TCSADRAIN 0x540f
+-#define TCSAFLUSH 0x5410
++#define TCSANOW 0
++#define TCSADRAIN 1
++#define TCSAFLUSH 2
+
+ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+ #define EXTA 0000016
+--
+2.8.1
+