diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index e8c027f17..f2112aec9 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -268,6 +268,7 @@ int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *heigh | |||
268 | int err; | 268 | int err; |
269 | int close_me = -1; | 269 | int close_me = -1; |
270 | 270 | ||
271 | #if !ENABLE_PLATFORM_MINGW32 | ||
271 | if (fd == -1) { | 272 | if (fd == -1) { |
272 | if (isatty(STDOUT_FILENO)) | 273 | if (isatty(STDOUT_FILENO)) |
273 | fd = STDOUT_FILENO; | 274 | fd = STDOUT_FILENO; |
@@ -280,6 +281,7 @@ int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *heigh | |||
280 | else | 281 | else |
281 | close_me = fd = open("/dev/tty", O_RDONLY); | 282 | close_me = fd = open("/dev/tty", O_RDONLY); |
282 | } | 283 | } |
284 | #endif | ||
283 | 285 | ||
284 | win.ws_row = 0; | 286 | win.ws_row = 0; |
285 | win.ws_col = 0; | 287 | win.ws_col = 0; |