summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c
index 4362705ad..9ba372407 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -1426,7 +1426,7 @@ display_window_size (int fancy, int fd, const char *device_name)
static int
screen_columns (void)
{
-#if 0
+#ifdef TIOCGWINSZ
struct winsize win;
/* With Solaris 2.[123], this ioctl fails and errno is set to