configs: mx53loco: Bump U-Boot version to 2016.07
[buildroot-gz.git] / package / freerdp / 0003-add-missing-define.patch
bloba8f669e1029beae646108fa3bfc19b5a3a34a256
1 libwinpr/comm_seria: fix missing define
3 FreeRDP uses CMSPAR, which is defined by glibc in bits/termios.h .
5 glibc has two flavours of bits/termios.h: a genmeric one and an
6 architecture-specific one. When installing, glibc will install the
7 architecture-specific file if it exists, otherwise it installs the
8 generic file. Only Alpha, MIPS, PPC and Sparc have their own
9 bits/termios.h.
11 The generic bits/termios.h, as well as the Alpha, PPC and Sparc flavours
12 do define CMSPAR. However, the MIPS flavour does not define it.
14 Define CMSPAR to the value from the generic value, which is also the
15 value known to the Linux kernel for MIPS.
17 Fixes:
18 http://autobuild.buildroot.org/results/0b4/0b4793f0bf9f4c57933897f3480054a4e06528ad/
19 http://autobuild.buildroot.org/results/7a2/7a2284d0a2987158fa2e78f789b07c8c6fcdb974/
20 http://autobuild.buildroot.org/results/387/3874088c3ccd4bbf76ea0c911ca1ef64c7dc9d1c/
21 ...
23 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
24 Cc: Peter Korsgaard <jacmet@uclibc.org>
25 Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 diff -durN freerdp-17834af7bb378f85a3b3cc4dcadaa5125a337e16.orig/winpr/libwinpr/comm/comm_serial_sys.c freerdp-17834af7bb378f85a3b3cc4dcadaa5125a337e16/winpr/libwinpr/comm/comm_serial_sys.c
28 --- freerdp-17834af7bb378f85a3b3cc4dcadaa5125a337e16.orig/winpr/libwinpr/comm/comm_serial_sys.c 2015-09-04 16:20:17.000000000 +0100
29 +++ freerdp-17834af7bb378f85a3b3cc4dcadaa5125a337e16/winpr/libwinpr/comm/comm_serial_sys.c 2015-10-04 11:07:41.868513726 +0100
30 @@ -27,6 +27,14 @@
31 #include <fcntl.h>
32 #include <sys/ioctl.h>
33 #include <termios.h>
35 +/* glibc for MIPS has its own bits/termios.h which does not define
36 + * CMSPAR, so we vampirise the value from the generic bits/termios.h
37 + */
38 +#ifndef CMSPAR
39 +#define CMSPAR 010000000000
40 +#endif
42 #include <unistd.h>
44 #include "comm_serial_sys.h"