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