e4aae0078b0a6d0d860969da907746b0b6e406ee
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python3 / 014-serial-ioctl-workaround.patch
1 Serial ioctl() workaround
2
3 The ioctls.h of some architectures (notably xtensa) references structs from
4 linux/serial.h. Make sure to include this header as well.
5
6 Also, undef TIOCTTYGSTRUCT that require reference to internal kernel tty_struct,
7 but isn't actually referenced in modern kernels.
8
9 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10 ---
11 Index: b/Modules/termios.c
12 ===================================================================
13 --- a/Modules/termios.c
14 +++ b/Modules/termios.c
15 @@ -9,7 +9,9 @@
16  #endif
17  
18  #include <termios.h>
19 +#include <linux/serial.h>
20  #include <sys/ioctl.h>
21 +#undef TIOCTTYGSTRUCT
22  
23  /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
24   * MDTR, MRI, and MRTS (appearantly used internally by some things