]> granicus.if.org Git - neomutt/commitdiff
include term.h from wherever we find ncurses.h (#713)
authorRichard Russon <rich@flatcap.org>
Tue, 22 Aug 2017 14:16:55 +0000 (15:16 +0100)
committerPietro Cerutti <gahr@gahr.ch>
Tue, 22 Aug 2017 14:16:55 +0000 (15:16 +0100)
* 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

index 168f7b9505ed004143849d6e8e2e7413752b531b..1259efd551e590abdef588631b07f29fdf63c4ed 100644 (file)
 #include "protos.h"
 #include "sort.h"
 #include "thread.h"
-#ifndef USE_SLANG_CURSES
+#ifdef HAVE_NCURSESW_NCURSES_H
+#include <ncursesw/term.h>
+#elif defined(HAVE_NCURSES_NCURSES_H)
+#include <ncurses/term.h>
+#else
 #include <term.h>
 #endif
 #ifdef USE_SIDEBAR