=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/lbuf.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/sudo/Attic/lbuf.c 2010/03/04 12:21:36 1.4 --- src/usr.bin/sudo/Attic/lbuf.c 2013/12/12 22:59:25 1.5 *************** *** 52,61 **** #include "sudo.h" #include "lbuf.h" ! #if !defined(TIOCGSIZE) && defined(TIOCGWINSZ) ! # define TIOCGSIZE TIOCGWINSZ ! # define ttysize winsize ! # define ts_cols ws_col #endif int --- 52,61 ---- #include "sudo.h" #include "lbuf.h" ! #if !defined(TIOCGWINSZ) && defined(TIOCGSIZE) ! # define TIOCGWINSZ TIOCGSIZE ! # define winsize ttysize ! # define ws_col ts_cols #endif int *************** *** 64,73 **** char *p; int cols; #ifdef TIOCGSIZE ! struct ttysize win; ! if (ioctl(STDERR_FILENO, TIOCGSIZE, &win) == 0 && win.ts_cols != 0) ! return((int)win.ts_cols); #endif /* Fall back on $COLUMNS. */ --- 64,73 ---- char *p; int cols; #ifdef TIOCGSIZE ! struct winsize win; ! if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) == 0 && win.ws_col != 0) ! return((int)win.ws_col); #endif /* Fall back on $COLUMNS. */