rather than TIOCGWINSZ are too old for sudo to build on anyway.
#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)
#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