toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / alljoyn / 0001-UARTStreamLinux-fix-build-on-sparc.patch
blobefca67feae15e971f9534674dcf4df95b029620b
1 From b8e35cf95184ff18bcf923f900439f56c93609db Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Sat, 16 Jul 2016 15:23:41 +0200
4 Subject: [PATCH] UARTStreamLinux: fix build on sparc
6 Some of the serial port highest speed are not defined on SPARC, so
7 alljoyn should not use them, so we add a patch to fix that.
9 From:
10 https://git.buildroot.org/buildroot/commit/?id=c5e96d8935016456bea342db170ae6a139a8470f
12 Fixes:
13 http://autobuild.buildroot.net/results/e5b/e5b30b5e0d86b44b97410d434b771e1fb7b18de0
15 Signed-off-by: Romain Naour <romain.naour@gmail.com>
16 ---
17 common/os/posix/UARTStreamLinux.cc | 8 ++++++++
18 1 file changed, 8 insertions(+)
20 diff --git a/common/os/posix/UARTStreamLinux.cc b/common/os/posix/UARTStreamLinux.cc
21 index c193b70..ae81d9d 100644
22 --- a/common/os/posix/UARTStreamLinux.cc
23 +++ b/common/os/posix/UARTStreamLinux.cc
24 @@ -111,21 +111,29 @@ QStatus UART(const qcc::String& devName, uint32_t baud, uint8_t databits, const
25 speed = B2000000;
26 break;
28 +#ifdef B2500000
29 case 2500000:
30 speed = B2500000;
31 break;
32 +#endif
34 +#ifdef B3000000
35 case 3000000:
36 speed = B3000000;
37 break;
38 +#endif
40 +#ifdef B3500000
41 case 3500000:
42 speed = B3500000;
43 break;
44 +#endif
46 +#ifdef B4000000
47 case 4000000:
48 speed = B4000000;
49 break;
50 +#endif
52 default:
53 QCC_LogError(ER_BAD_ARG_2, ("Invalid baud %d", baud));
54 --
55 2.5.5