From 2ac1bc84d71fbfc17b9f0571bc6da93c960eaedf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 May 2017 17:15:37 +0200 Subject: text-utils: use proper paths to term.h Signed-off-by: Karel Zak --- text-utils/pg.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'text-utils/pg.c') diff --git a/text-utils/pg.c b/text-utils/pg.c index b05ec3d70..bc485e2fe 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -59,13 +59,23 @@ #include #include -#ifdef HAVE_NCURSES_H +#ifdef HAVE_NCURSESW_H +# include +#elif defined(HAVE_NCURSES_H) # include +#elif defined(HAVE_NCURSESW_NCURSES_H) +# include #elif defined(HAVE_NCURSES_NCURSES_H) # include #endif -#include +#ifdef HAVE_TERM_H +# include +#elif defined(HAVE_NCURSES_TERM_H) +# include +#elif defined(HAVE_NCURSESW_TERM_H) +# include +#endif #include "nls.h" #include "xalloc.h" -- cgit v1.2.3-55-g7522