From 0319495b64ed3164ad4f1d7d07b4fa96dfddd230 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sat, 1 Jul 2017 11:46:23 +0200 Subject: [PATCH] Include term.h for tigetstr except for slang build. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes curs_main.c:529:11: warning: implicit declaration of function ‘tigetstr’ [-Wimplicit-function-declaration] Including it before header.h causes compilation errors because of "int lines;" in header.h and in term.h. --- curs_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/curs_main.c b/curs_main.c index fec967e7d..9c2fb3a41 100644 --- a/curs_main.c +++ b/curs_main.c @@ -50,6 +50,9 @@ #include "protos.h" #include "sort.h" #include "thread.h" +#ifndef USE_SLANG_CURSES +#include +#endif #ifdef USE_SIDEBAR #include "sidebar.h" #endif -- 2.40.0