diff options
-rw-r--r-- | win32/termios.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/termios.c b/win32/termios.c index 36c4ea526..c56d58fd0 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -230,9 +230,10 @@ static int get_wincon_width_height(const int fd, int *width, int *height) | |||
230 | return 0; | 230 | return 0; |
231 | } | 231 | } |
232 | 232 | ||
233 | |||
234 | #if ENABLE_FEATURE_CYGWIN_TTY | ||
233 | int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *height) | 235 | int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *height) |
234 | { | 236 | { |
235 | #if ENABLE_FEATURE_CYGWIN_TTY | ||
236 | int tty = fd_to_tty(fd); | 237 | int tty = fd_to_tty(fd); |
237 | struct shared_info *si = get_shared_info(); | 238 | struct shared_info *si = get_shared_info(); |
238 | 239 | ||
@@ -243,9 +244,9 @@ int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *heigh | |||
243 | *height = si->tty.ttys[tty].tty_min.winsize.ws_row; | 244 | *height = si->tty.ttys[tty].tty_min.winsize.ws_row; |
244 | return 0; | 245 | return 0; |
245 | } | 246 | } |
246 | #endif | ||
247 | return get_wincon_width_height(fd, width, height); | 247 | return get_wincon_width_height(fd, width, height); |
248 | } | 248 | } |
249 | #endif | ||
249 | 250 | ||
250 | int wincon_read(int fd, char *buf, int size) | 251 | int wincon_read(int fd, char *buf, int size) |
251 | { | 252 | { |