1 Serial ioctl() workaround
3 The ioctls.h of some architectures (notably xtensa) references structs from
4 linux/serial.h. Make sure to include this header as well.
6 Also, undef TIOCTTYGSTRUCT that require reference to internal kernel tty_struct,
7 but isn't actually referenced in modern kernels.
9 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
11 Index: b/Modules/termios.c
12 ===================================================================
13 --- a/Modules/termios.c
14 +++ b/Modules/termios.c
19 +#include <linux/serial.h>
20 #include <sys/ioctl.h>
21 +#undef TIOCTTYGSTRUCT
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