aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat.h7
-rw-r--r--proc.c4
-rw-r--r--tty-term.c7
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 <limits.h>
#include <stdio.h>
#include <termios.h>
-#include <term.h>
#include <wchar.h>
-#if defined(HAVE_CURSES_H)
-#include <curses.h>
-#elif defined(HAVE_NCURSES_H)
-#include <ncurses.h>
-#endif
-
#ifdef HAVE_UTF8PROC
#include <utf8proc.h>
#endif
diff --git a/proc.c b/proc.c
index 48db6367..5b3fd735 100644
--- a/proc.c
+++ b/proc.c
@@ -27,6 +27,10 @@
#include <string.h>
#include <unistd.h>
+#if defined(HAVE_NCURSES_H)
+#include <ncurses.h>
+#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 <fnmatch.h>
#include <stdlib.h>
#include <string.h>
+#include <term.h>
+
+#if defined(HAVE_CURSES_H)
+#include <curses.h>
+#elif defined(HAVE_NCURSES_H)
+#include <ncurses.h>
+#endif
#include "tmux.h"