From fa03e7a0ebc77c0bf5a306aee626cb8cd4046179 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Oct 1998 12:59:04 +0000 Subject: [PATCH] Define __kernel_termios here instead of including kernel_termios.h. --- sysdeps/unix/sysv/linux/alpha/bits/ioctls.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h b/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h index dcbf9f44021..a30035cee57 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h @@ -22,7 +22,20 @@ /* Use the definitions from the kernel header files. */ #include -#include + +/* We need the kernel definition of the `termios' struct. */ +#define __KERNEL_NCCS 19 +struct __kernel_termios + { + tcflag_t c_iflag; /* input mode flags */ + tcflag_t c_oflag; /* output mode flags */ + tcflag_t c_cflag; /* control mode flags */ + tcflag_t c_lflag; /* local mode flags */ + cc_t c_cc[__KERNEL_NCCS]; /* control characters */ + cc_t c_line; /* line discipline */ + speed_t c_ispeed; /* input speed */ + speed_t c_ospeed; /* output speed */ + }; /* Oh well, this is necessary since the kernel data structure is different from the user-level version. */ -- 2.47.3