musl: fix termios struct c_ispeed/c_ospeed field names
[openwrt.git] / toolchain / musl / patches / 020-fix-termios-custom-speed-field-names.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sun, 13 Sep 2015 18:46:17 +0200
3 Subject: [PATCH] fix termios custom speed field names
4
5 Using c_ispeed/c_ospeed is necessary for setting custom baud rates not
6 covered by the existing defines (via BOTHER).
7 Rename those fields to match glibc/uClibc.
8
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 ---
11
12 --- a/arch/aarch64/bits/termios.h
13 +++ b/arch/aarch64/bits/termios.h
14 @@ -6,8 +6,8 @@ struct termios
15         tcflag_t c_lflag;
16         cc_t c_line;
17         cc_t c_cc[NCCS];
18 -       speed_t __c_ispeed;
19 -       speed_t __c_ospeed;
20 +       speed_t c_ispeed;
21 +       speed_t c_ospeed;
22  };
23  
24  #define VINTR     0
25 --- a/arch/arm/bits/termios.h
26 +++ b/arch/arm/bits/termios.h
27 @@ -6,8 +6,8 @@ struct termios
28         tcflag_t c_lflag;
29         cc_t c_line;
30         cc_t c_cc[NCCS];
31 -       speed_t __c_ispeed;
32 -       speed_t __c_ospeed;
33 +       speed_t c_ispeed;
34 +       speed_t c_ospeed;
35  };
36  
37  #define VINTR     0
38 --- a/arch/i386/bits/termios.h
39 +++ b/arch/i386/bits/termios.h
40 @@ -6,8 +6,8 @@ struct termios
41         tcflag_t c_lflag;
42         cc_t c_line;
43         cc_t c_cc[NCCS];
44 -       speed_t __c_ispeed;
45 -       speed_t __c_ospeed;
46 +       speed_t c_ispeed;
47 +       speed_t c_ospeed;
48  };
49  
50  #define VINTR     0
51 --- a/arch/microblaze/bits/termios.h
52 +++ b/arch/microblaze/bits/termios.h
53 @@ -6,8 +6,8 @@ struct termios
54         tcflag_t c_lflag;
55         cc_t c_line;
56         cc_t c_cc[NCCS];
57 -       speed_t __c_ispeed;
58 -       speed_t __c_ospeed;
59 +       speed_t c_ispeed;
60 +       speed_t c_ospeed;
61  };
62  
63  #define VINTR     0
64 --- a/arch/mips/bits/termios.h
65 +++ b/arch/mips/bits/termios.h
66 @@ -6,8 +6,8 @@ struct termios
67         tcflag_t c_lflag;
68         cc_t c_line;
69         cc_t c_cc[NCCS];
70 -       speed_t __c_ispeed;
71 -       speed_t __c_ospeed;
72 +       speed_t c_ispeed;
73 +       speed_t c_ospeed;
74  };
75  
76  #define VINTR     0
77 --- a/arch/or1k/bits/termios.h
78 +++ b/arch/or1k/bits/termios.h
79 @@ -5,8 +5,8 @@ struct termios {
80         tcflag_t c_lflag;
81         cc_t c_line;
82         cc_t c_cc[NCCS];
83 -       speed_t __c_ispeed;
84 -       speed_t __c_ospeed;
85 +       speed_t c_ispeed;
86 +       speed_t c_ospeed;
87  };
88  
89  #define VINTR     0
90 --- a/arch/powerpc/bits/termios.h
91 +++ b/arch/powerpc/bits/termios.h
92 @@ -8,8 +8,8 @@ struct termios
93         tcflag_t c_lflag;
94         cc_t c_cc[NCCS];
95         cc_t c_line;
96 -       speed_t __c_ispeed;
97 -       speed_t __c_ospeed;
98 +       speed_t c_ispeed;
99 +       speed_t c_ospeed;
100  };
101  
102  #define VINTR          0
103 --- a/arch/sh/bits/termios.h
104 +++ b/arch/sh/bits/termios.h
105 @@ -6,8 +6,8 @@ struct termios
106         tcflag_t c_lflag;
107         cc_t c_line;
108         cc_t c_cc[NCCS];
109 -       speed_t __c_ispeed;
110 -       speed_t __c_ospeed;
111 +       speed_t c_ispeed;
112 +       speed_t c_ospeed;
113  };
114  
115  #define VINTR     0
116 --- a/arch/x32/bits/termios.h
117 +++ b/arch/x32/bits/termios.h
118 @@ -6,8 +6,8 @@ struct termios
119         tcflag_t c_lflag;
120         cc_t c_line;
121         cc_t c_cc[NCCS];
122 -       speed_t __c_ispeed;
123 -       speed_t __c_ospeed;
124 +       speed_t c_ispeed;
125 +       speed_t c_ospeed;
126  };
127  
128  #define VINTR     0
129 --- a/arch/x86_64/bits/termios.h
130 +++ b/arch/x86_64/bits/termios.h
131 @@ -6,8 +6,8 @@ struct termios
132         tcflag_t c_lflag;
133         cc_t c_line;
134         cc_t c_cc[NCCS];
135 -       speed_t __c_ispeed;
136 -       speed_t __c_ospeed;
137 +       speed_t c_ispeed;
138 +       speed_t c_ospeed;
139  };
140  
141  #define VINTR     0