board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / python / 0014-Serial-ioctl-workaround.patch
blob468d535ac3dabb9ec8e9a13971b4e6dcd84d0065
1 From 22e5a4c5d29ddf0856d7f68f5a613aec00e26168 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Tue, 7 Mar 2017 22:25:36 +0100
4 Subject: [PATCH] Serial ioctl() workaround
6 The ioctls.h of some architectures (notably xtensa) references structs from
7 linux/serial.h. Make sure to include this header as well.
9 Also, undef TIOCTTYGSTRUCT that require reference to internal kernel tty_struct,
10 but isn't actually referenced in modern kernels.
12 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
13 ---
14 Modules/termios.c | 2 ++
15 1 file changed, 2 insertions(+)
17 diff --git a/Modules/termios.c b/Modules/termios.c
18 index 57f30dc..a8c9855 100644
19 --- a/Modules/termios.c
20 +++ b/Modules/termios.c
21 @@ -16,7 +16,9 @@
22 * so this needs to be included first on that platform. */
23 #include <termio.h>
24 #endif
25 +#include <linux/serial.h>
26 #include <sys/ioctl.h>
27 +#undef TIOCTTYGSTRUCT
29 /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
30 * MDTR, MRI, and MRTS (appearantly used internally by some things
31 --
32 2.7.4