Include linux/termios.h from sys/ioctl.h.
On NetBSD and glibc, including sys/ioctl.h provides some terminal ioctl data structures such as struct winsize. For compatibility, provide these via sys/ioctl.h in bionic as well. bionic does not have its own definitions for these structures, so get them from the Linux kernel definitions. Change-Id: I01345c23c0bebd60b0a80fc33668e7c0ad7356c3
This commit is contained in:
parent
d7b0d6e1e1
commit
f936ef1a9f
@ -30,6 +30,11 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <linux/ioctl.h>
|
||||
/*
|
||||
* NetBSD and glibc's <sys/ioctl.h> provide some of the
|
||||
* terminal-related ioctl data structures such as struct winsize.
|
||||
*/
|
||||
#include <linux/termios.h>
|
||||
#include <asm/ioctls.h>
|
||||
#include <asm/termbits.h>
|
||||
#include <sys/ioctl_compat.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user