From 4b1f0c41766c6871ebb34dcd9e34c07f6c30f128 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 26 Feb 2017 16:41:25 -0700 Subject: [PATCH] Remove support for the TIOCGSIZE ioctl. Systems that use this rather than TIOCGWINSZ are too old for sudo to build on anyway. --- lib/util/ttysize.c | 8 -------- src/exec_pty.c | 7 ------- 2 files changed, 15 deletions(-) diff --git a/lib/util/ttysize.c b/lib/util/ttysize.c index 816d251df..612698c7e 100644 --- a/lib/util/ttysize.c +++ b/lib/util/ttysize.c @@ -30,14 +30,6 @@ #include "sudo_debug.h" #include "sudo_util.h" -/* Compatibility with older tty systems. */ -#if !defined(TIOCGWINSZ) && defined(TIOCGSIZE) -# define TIOCGWINSZ TIOCGSIZE -# define winsize ttysize -# define ws_col ts_cols -# define ws_row ts_lines -#endif - #ifdef TIOCGWINSZ static int get_ttysize_ioctl(int *rowp, int *colp) diff --git a/src/exec_pty.c b/src/exec_pty.c index da7a7cf2a..885b65477 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -57,13 +57,6 @@ #define TERM_COOKED 0 #define TERM_RAW 1 -/* Compatibility with older tty systems. */ -#if !defined(TIOCGWINSZ) && defined(TIOCGSIZE) -# define TIOCGWINSZ TIOCGSIZE -# define TIOCSWINSZ TIOCSSIZE -# define winsize ttysize -#endif - /* * I/O buffer with associated read/write events and a logging action. * Used to, e.g. pass data from the pty to the user's terminal -- 2.50.1