diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-06-24 22:11:13 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-06-24 22:11:13 +0200 |
commit | bd65f62bb4eb9329b51b4665ab2abefbc4f5ff81 (patch) | |
tree | 1379b50f30eb3134128a7d52f4e1d712b7ece84e | |
parent | 554690e7b3dcbbbf405f7600799da48e920c9024 (diff) | |
download | vte-bd65f62bb4eb9329b51b4665ab2abefbc4f5ff81.tar.gz |
all: Include <termios.h> directly
<sys/termios.h> is just a deprecated way to include <termios.h> anyway.
https://gitlab.gnome.org/GNOME/vte/-/issues/2564
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | src/dumpkeys.c | 7 | ||||
-rw-r--r-- | src/mev.c | 5 | ||||
-rw-r--r-- | src/pty.cc | 5 | ||||
-rw-r--r-- | src/vte.cc | 5 |
5 files changed, 3 insertions, 20 deletions
diff --git a/meson.build b/meson.build index e62e9a26..83901580 100644 --- a/meson.build +++ b/meson.build @@ -235,7 +235,6 @@ check_headers = [ 'sys/select.h', 'sys/stream.h', 'sys/syslimits.h', - 'sys/termios.h', 'sys/types.h', 'sys/wait.h', 'termios.h', diff --git a/src/dumpkeys.c b/src/dumpkeys.c index 5959a96d..08a72d23 100644 --- a/src/dumpkeys.c +++ b/src/dumpkeys.c @@ -22,9 +22,7 @@ #ifdef HAVE_SYS_SELECT_H #include <sys/select.h> #endif -#ifdef HAVE_SYS_TERMIOS_H -#include <sys/termios.h> -#endif +#include <termios.h> #include <sys/time.h> #include <unistd.h> #include <fcntl.h> @@ -32,9 +30,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#ifdef HAVE_TERMIOS_H -#include <termios.h> -#endif #include <unistd.h> #include <glib.h> @@ -17,17 +17,12 @@ #include <config.h> #include <sys/types.h> -#ifdef HAVE_SYS_TERMIOS_H -#include <sys/termios.h> -#endif #include <sys/time.h> #include <stdio.h> #include <fcntl.h> #include <signal.h> #include <string.h> -#ifdef HAVE_TERMIOS_H #include <termios.h> -#endif #include <unistd.h> #include <glib.h> #include "caps.hh" @@ -38,9 +38,6 @@ #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> -#ifdef HAVE_SYS_TERMIOS_H -#include <sys/termios.h> -#endif #include <errno.h> #include <fcntl.h> #include <limits.h> @@ -52,9 +49,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#ifdef HAVE_TERMIOS_H #include <termios.h> -#endif #include <unistd.h> #ifdef HAVE_UTIL_H #include <util.h> @@ -25,9 +25,8 @@ #include <sys/ioctl.h> #include <errno.h> #include <fcntl.h> -#ifdef HAVE_SYS_TERMIOS_H -#include <sys/termios.h> -#endif +#include <termios.h> + #ifdef HAVE_STROPTS_H #include <stropts.h> #endif |