summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 6fa0e906ac..e7983bbcb9 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -410,7 +410,9 @@ console_set_winsize(VALUE io, VALUE size)
int newrow, newcol;
#endif
VALUE row, col, xpixel, ypixel;
+#if defined TIOCSWINSZ
int fd;
+#endif
GetOpenFile(io, fptr);
size = rb_Array(size);