From 091f92bab3907632016bb1bc5585830158e33dcf Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 28 Jun 2023 16:22:03 +0200 Subject: liberty-xui: fix a build warning On macOS, TIOCGWINSZ seems to be defined earlier. --- liberty-xui.c | 4 ++-- 1 file 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 #include -#ifndef TIOCGWINSZ +#ifdef HAVE_RESIZETERM #include -#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 -- cgit v1.2.3-70-g09d2