summaryrefslogtreecommitdiffstats
path: root/misc-utils/cal.c
diff options
context:
space:
mode:
authorKarel Zak2017-05-31 11:01:46 +0200
committerKarel Zak2017-05-31 11:01:46 +0200
commit3947ca4ca9737d830f54658ef353f5626c0d0282 (patch)
tree81f157f6f3b2ce751db3e943cce970e30377b78c /misc-utils/cal.c
parentcfdisk: fix compiler warning (diff)
downloadkernel-qcow2-util-linux-3947ca4ca9737d830f54658ef353f5626c0d0282.tar.gz
kernel-qcow2-util-linux-3947ca4ca9737d830f54658ef353f5626c0d0282.tar.xz
kernel-qcow2-util-linux-3947ca4ca9737d830f54658ef353f5626c0d0282.zip
build-sys: ncurses headers cleanup
* assume ncursesw headers in ncursesw/ directory only * prefer long paths, <term.h> and <ncurses.h> should be last possibility * fix typos Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r--misc-utils/cal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index 2b16979db..604eb26a7 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -80,12 +80,12 @@ static int has_term = 0;
static const char *Senter = "", *Sexit = ""; /* enter and exit standout mode */
#if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW)
-# ifdef HAVE_TERM_H
-# include <term.h>
+# if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
# elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-# elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+# elif defined(HAVE_TERM_H)
+# include <term.h>
# endif
#endif