From 62a4fbc95afab669f3969502fd082099ea8d1e16 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 22 Aug 2017 15:16:55 +0100 Subject: [PATCH] include term.h from wherever we find ncurses.h (#713) * include term.h from wherever we find ncurses.h Solaris needs term.h for tigetstr(), but term.h doesn't always live in /usr/include * Do not forget about plain curses.h --- curs_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/curs_main.c b/curs_main.c index 168f7b950..1259efd55 100644 --- a/curs_main.c +++ b/curs_main.c @@ -56,7 +56,11 @@ #include "protos.h" #include "sort.h" #include "thread.h" -#ifndef USE_SLANG_CURSES +#ifdef HAVE_NCURSESW_NCURSES_H +#include +#elif defined(HAVE_NCURSES_NCURSES_H) +#include +#else #include #endif #ifdef USE_SIDEBAR -- 2.40.0