From a48cc458a60310480a8ba02da14fbed6f88399f4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 22 May 2020 17:27:07 +0100 Subject: Maybe this is better. --- compat.h | 7 ------- proc.c | 4 ++++ tty-term.c | 7 +++++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/compat.h b/compat.h index 19a5e466..37f78e7b 100644 --- a/compat.h +++ b/compat.h @@ -25,15 +25,8 @@ #include #include #include -#include #include -#if defined(HAVE_CURSES_H) -#include -#elif defined(HAVE_NCURSES_H) -#include -#endif - #ifdef HAVE_UTF8PROC #include #endif diff --git a/proc.c b/proc.c index 48db6367..5b3fd735 100644 --- a/proc.c +++ b/proc.c @@ -27,6 +27,10 @@ #include #include +#if defined(HAVE_NCURSES_H) +#include +#endif + #include "tmux.h" struct tmuxproc { diff --git a/tty-term.c b/tty-term.c index 66238b38..1906eb23 100644 --- a/tty-term.c +++ b/tty-term.c @@ -21,6 +21,13 @@ #include #include #include +#include + +#if defined(HAVE_CURSES_H) +#include +#elif defined(HAVE_NCURSES_H) +#include +#endif #include "tmux.h" -- cgit