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 /term-utils/setterm.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 'term-utils/setterm.c')
-rw-r--r-- | term-utils/setterm.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/term-utils/setterm.c b/term-utils/setterm.c index 8e969c2b3..53826f954 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -60,16 +60,13 @@ #include <termios.h> #include <unistd.h> -#ifndef NCURSES_CONST -# define NCURSES_CONST const /* define before including 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 -#ifdef HAVE_NCURSES_H -# include <ncurses.h> -#elif defined(HAVE_NCURSES_NCURSES_H) -# include <ncurses/ncurses.h> -#endif -/* must include after ncurses.h */ -#include <term.h> #ifdef HAVE_LINUX_TIOCL_H # include <linux/tiocl.h> |