ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
[openwrt/openwrt.git] / toolchain / musl / patches / 010-fix-regression-in-tcsetattr-on-all-mips-archs.patch
1 From cff5747c74c41b22f1ce1340978b1c226a8cdf32 Mon Sep 17 00:00:00 2001
2 From: Rich Felker <dalias@aerifal.cx>
3 Date: Wed, 13 Jul 2016 15:04:30 -0400
4 Subject: [PATCH] fix regression in tcsetattr on all mips archs
5
6 revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
7 and does not match how the kernel API works.
8 ---
9 arch/mips/bits/termios.h | 6 +++---
10 arch/mips64/bits/termios.h | 6 +++---
11 arch/mipsn32/bits/termios.h | 6 +++---
12 4 files changed, 10 insertions(+), 10 deletions(-)
13
14 diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
15 index f559f76..6a1205d 100644
16 --- a/arch/mips/bits/termios.h
17 +++ b/arch/mips/bits/termios.h
18 @@ -141,9 +141,9 @@ struct termios {
19 #define TCOFLUSH 1
20 #define TCIOFLUSH 2
21
22 -#define TCSANOW 0x540e
23 -#define TCSADRAIN 0x540f
24 -#define TCSAFLUSH 0x5410
25 +#define TCSANOW 0
26 +#define TCSADRAIN 1
27 +#define TCSAFLUSH 2
28
29 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
30 #define EXTA 0000016
31 diff --git a/arch/mips64/bits/termios.h b/arch/mips64/bits/termios.h
32 index f559f76..6a1205d 100644
33 --- a/arch/mips64/bits/termios.h
34 +++ b/arch/mips64/bits/termios.h
35 @@ -141,9 +141,9 @@ struct termios {
36 #define TCOFLUSH 1
37 #define TCIOFLUSH 2
38
39 -#define TCSANOW 0x540e
40 -#define TCSADRAIN 0x540f
41 -#define TCSAFLUSH 0x5410
42 +#define TCSANOW 0
43 +#define TCSADRAIN 1
44 +#define TCSAFLUSH 2
45
46 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
47 #define EXTA 0000016
48 diff --git a/arch/mipsn32/bits/termios.h b/arch/mipsn32/bits/termios.h
49 index f559f76..6a1205d 100644
50 --- a/arch/mipsn32/bits/termios.h
51 +++ b/arch/mipsn32/bits/termios.h
52 @@ -141,9 +141,9 @@ struct termios {
53 #define TCOFLUSH 1
54 #define TCIOFLUSH 2
55
56 -#define TCSANOW 0x540e
57 -#define TCSADRAIN 0x540f
58 -#define TCSAFLUSH 0x5410
59 +#define TCSANOW 0
60 +#define TCSADRAIN 1
61 +#define TCSAFLUSH 2
62
63 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
64 #define EXTA 0000016
65 --
66 2.8.1
67