package/aubio: add libsndfile optional dependency
[buildroot-gz.git] / package / musl / 0001-fix-regression-in-tcsetattr-on-all-mips-archs.patch
blob73ccae4495e5961c1271339d50b9cfc2c8a34343
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
6 revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
7 and does not match how the kernel API works.
9 Signed-off-by: Rich Felker <dalias@aerifal.cx>
10 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
11 ---
12 arch/mips/bits/termios.h | 6 +++---
13 arch/mips64/bits/termios.h | 6 +++---
14 arch/mipsn32/bits/termios.h | 6 +++---
15 3 files changed, 9 insertions(+), 9 deletions(-)
17 diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
18 index f559f76..6a1205d 100644
19 --- a/arch/mips/bits/termios.h
20 +++ b/arch/mips/bits/termios.h
21 @@ -141,9 +141,9 @@ struct termios {
22 #define TCOFLUSH 1
23 #define TCIOFLUSH 2
25 -#define TCSANOW 0x540e
26 -#define TCSADRAIN 0x540f
27 -#define TCSAFLUSH 0x5410
28 +#define TCSANOW 0
29 +#define TCSADRAIN 1
30 +#define TCSAFLUSH 2
32 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
33 #define EXTA 0000016
34 diff --git a/arch/mips64/bits/termios.h b/arch/mips64/bits/termios.h
35 index f559f76..6a1205d 100644
36 --- a/arch/mips64/bits/termios.h
37 +++ b/arch/mips64/bits/termios.h
38 @@ -141,9 +141,9 @@ struct termios {
39 #define TCOFLUSH 1
40 #define TCIOFLUSH 2
42 -#define TCSANOW 0x540e
43 -#define TCSADRAIN 0x540f
44 -#define TCSAFLUSH 0x5410
45 +#define TCSANOW 0
46 +#define TCSADRAIN 1
47 +#define TCSAFLUSH 2
49 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
50 #define EXTA 0000016
51 diff --git a/arch/mipsn32/bits/termios.h b/arch/mipsn32/bits/termios.h
52 index f559f76..6a1205d 100644
53 --- a/arch/mipsn32/bits/termios.h
54 +++ b/arch/mipsn32/bits/termios.h
55 @@ -141,9 +141,9 @@ struct termios {
56 #define TCOFLUSH 1
57 #define TCIOFLUSH 2
59 -#define TCSANOW 0x540e
60 -#define TCSADRAIN 0x540f
61 -#define TCSAFLUSH 0x5410
62 +#define TCSANOW 0
63 +#define TCSADRAIN 1
64 +#define TCSAFLUSH 2
66 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
67 #define EXTA 0000016