aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-13 17:38:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-09-13 17:38:49 +0000
commitf5db47664cbe6a52d47847c6ebb4a193265cbef2 (patch)
tree5c5dac368904f211d9127f229aac4693de7a375c /toolchain
parent9392f650a57cc131389079139f95259a99e41c5e (diff)
downloadmaster-187ad058-f5db47664cbe6a52d47847c6ebb4a193265cbef2.tar.gz
master-187ad058-f5db47664cbe6a52d47847c6ebb4a193265cbef2.tar.bz2
master-187ad058-f5db47664cbe6a52d47847c6ebb4a193265cbef2.zip
musl: fix termios struct c_ispeed/c_ospeed field names
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46896 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/musl/patches/020-fix-termios-custom-speed-field-names.patch141
1 files changed, 141 insertions, 0 deletions
diff --git a/toolchain/musl/patches/020-fix-termios-custom-speed-field-names.patch b/toolchain/musl/patches/020-fix-termios-custom-speed-field-names.patch
new file mode 100644
index 0000000000..72e0f6277a
--- /dev/null
+++ b/toolchain/musl/patches/020-fix-termios-custom-speed-field-names.patch
@@ -0,0 +1,141 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sun, 13 Sep 2015 18:46:17 +0200
+Subject: [PATCH] fix termios custom speed field names
+
+Using c_ispeed/c_ospeed is necessary for setting custom baud rates not
+covered by the existing defines (via BOTHER).
+Rename those fields to match glibc/uClibc.
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+
+--- a/arch/aarch64/bits/termios.h
++++ b/arch/aarch64/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/arm/bits/termios.h
++++ b/arch/arm/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/i386/bits/termios.h
++++ b/arch/i386/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/microblaze/bits/termios.h
++++ b/arch/microblaze/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/mips/bits/termios.h
++++ b/arch/mips/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/or1k/bits/termios.h
++++ b/arch/or1k/bits/termios.h
+@@ -5,8 +5,8 @@ struct termios {
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/powerpc/bits/termios.h
++++ b/arch/powerpc/bits/termios.h
+@@ -8,8 +8,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_cc[NCCS];
+ cc_t c_line;
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/sh/bits/termios.h
++++ b/arch/sh/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/x32/bits/termios.h
++++ b/arch/x32/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0
+--- a/arch/x86_64/bits/termios.h
++++ b/arch/x86_64/bits/termios.h
+@@ -6,8 +6,8 @@ struct termios
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[NCCS];
+- speed_t __c_ispeed;
+- speed_t __c_ospeed;
++ speed_t c_ispeed;
++ speed_t c_ospeed;
+ };
+
+ #define VINTR 0