diff options
author | Karel Zak | 2017-05-30 17:15:37 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-30 17:15:37 +0200 |
commit | 2ac1bc84d71fbfc17b9f0571bc6da93c960eaedf (patch) | |
tree | 8a7735b251dbd169775629e98f1e114000d1b3fd /text-utils/pg.c | |
parent | cal: ncurses cleanup (diff) | |
download | kernel-qcow2-util-linux-2ac1bc84d71fbfc17b9f0571bc6da93c960eaedf.tar.gz kernel-qcow2-util-linux-2ac1bc84d71fbfc17b9f0571bc6da93c960eaedf.tar.xz kernel-qcow2-util-linux-2ac1bc84d71fbfc17b9f0571bc6da93c960eaedf.zip |
text-utils: use proper paths to term.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r-- | text-utils/pg.c | 14 |
1 files changed, 12 insertions, 2 deletions
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 <signal.h> #include <setjmp.h> -#ifdef HAVE_NCURSES_H +#ifdef HAVE_NCURSESW_H +# include <ncursesw.h> +#elif defined(HAVE_NCURSES_H) # include <ncurses.h> +#elif defined(HAVE_NCURSESW_NCURSES_H) +# include <ncursesw/ncurses.h> #elif defined(HAVE_NCURSES_NCURSES_H) # include <ncurses/ncurses.h> #endif -#include <term.h> +#ifdef HAVE_TERM_H +# include <term.h> +#elif defined(HAVE_NCURSES_TERM_H) +# include <ncurses/term.h> +#elif defined(HAVE_NCURSESW_TERM_H) +# include <ncursesw/term.h> +#endif #include "nls.h" #include "xalloc.h" |