aboutsummaryrefslogtreecommitdiff
path: root/src/libeinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libeinfo.c')
-rw-r--r--src/libeinfo.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libeinfo.c b/src/libeinfo.c
index b85b2f42..5025f339 100644
--- a/src/libeinfo.c
+++ b/src/libeinfo.c
@@ -175,17 +175,10 @@ static bool colour_terminal (void)
static int get_term_columns (FILE *stream)
{
-#if defined(TIOCGSIZE) /* BSD */
- struct ttysize ts;
-
- if (ioctl (fileno (stream), TIOCGSIZE, &ts) == 0)
- return (ts.ts_cols);
-#elif defined(TIOCGWINSZ) /* Linux */
struct winsize ws;
if (ioctl (fileno (stream), TIOCGWINSZ, &ws) == 0)
return (ws.ws_col);
-#endif
return (DEFAULT_COLS);
}