From: Richard Russon Date: Tue, 22 Aug 2017 14:16:55 +0000 (+0100) Subject: include term.h from wherever we find ncurses.h (#713) X-Git-Tag: neomutt-20170907~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62a4fbc95afab669f3969502fd082099ea8d1e16;p=neomutt 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 --- 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