7878
|
1 |
--- weechat-0.3.6/src/gui/curses/gui-curses-window.c_old 2011-10-30 17:02:33.652427573 +0000
|
|
2 |
+++ weechat-0.3.6/src/gui/curses/gui-curses-window.c 2011-10-30 17:26:36.274039960 +0000
|
|
3 |
@@ -32,6 +32,7 @@
|
|
4 |
#include <stdarg.h>
|
|
5 |
#include <libgen.h>
|
|
6 |
#include <sys/ioctl.h>
|
|
7 |
+#include <sys/termios.h>
|
|
8 |
|
|
9 |
#include "../../core/weechat.h"
|
|
10 |
#include "../../core/wee-config.h"
|
|
11 |
@@ -94,7 +95,7 @@
|
|
12 |
struct winsize size;
|
|
13 |
int new_width, new_height;
|
|
14 |
|
|
15 |
- if (ioctl (fileno (stdout), TIOCGWINSZ, &size) == 0)
|
|
16 |
+ if ( (fileno (stdout), TIOCGWINSZ, &size) == 0)
|
|
17 |
{
|
|
18 |
resizeterm (size.ws_row, size.ws_col);
|
|
19 |
gui_term_cols = size.ws_col;
|