]> granicus.if.org Git - neomutt/commitdiff
Include term.h for tigetstr except for slang build.
authorThomas Klausner <wiz@NetBSD.org>
Sat, 1 Jul 2017 09:46:23 +0000 (11:46 +0200)
committerThomas Klausner <wiz@NetBSD.org>
Sat, 1 Jul 2017 11:57:01 +0000 (13:57 +0200)
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

index fec967e7d7505f9e30c9c88ca55be3d668b4da51..9c2fb3a419e9bff1ee55794b71226409644f311c 100644 (file)
@@ -50,6 +50,9 @@
 #include "protos.h"
 #include "sort.h"
 #include "thread.h"
+#ifndef USE_SLANG_CURSES
+#include <term.h>
+#endif
 #ifdef USE_SIDEBAR
 #include "sidebar.h"
 #endif