liberty-xui: fix a build warning

On macOS, TIOCGWINSZ seems to be defined earlier.
This commit is contained in:
Přemysl Eric Janouch 2023-06-28 16:22:03 +02:00
parent 556c25855e
commit 091f92bab3
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@
#include <unicase.h> #include <unicase.h>
#include <termios.h> #include <termios.h>
#ifndef TIOCGWINSZ #ifdef HAVE_RESIZETERM
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif // ! TIOCGWINSZ #endif // HAVE_RESIZETERM
// ncurses is notoriously retarded for input handling, and in past versions // ncurses is notoriously retarded for input handling, and in past versions
// used to process mouse events unreliably. Moreover, rxvt-unicode only // used to process mouse events unreliably. Moreover, rxvt-unicode only