diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-28 16:22:03 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-28 16:24:59 +0200 |
commit | 091f92bab3907632016bb1bc5585830158e33dcf (patch) | |
tree | d46fe51f7f0e1ad9789ac064d45917b9da8b78a9 | |
parent | 556c25855e62a8b66597dea1a92315d3cbcbdf4d (diff) | |
download | liberty-091f92bab3907632016bb1bc5585830158e33dcf.tar.gz liberty-091f92bab3907632016bb1bc5585830158e33dcf.tar.xz liberty-091f92bab3907632016bb1bc5585830158e33dcf.zip |
liberty-xui: fix a build warning
On macOS, TIOCGWINSZ seems to be defined earlier.
-rw-r--r-- | liberty-xui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty-xui.c b/liberty-xui.c index b6b5e24..125985e 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -47,9 +47,9 @@ #include <unicase.h> #include <termios.h> -#ifndef TIOCGWINSZ +#ifdef HAVE_RESIZETERM #include <sys/ioctl.h> -#endif // ! TIOCGWINSZ +#endif // HAVE_RESIZETERM // ncurses is notoriously retarded for input handling, and in past versions // used to process mouse events unreliably. Moreover, rxvt-unicode only |