]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/colors: ncurses cleanup
authorKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 15:10:40 +0000 (17:10 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 15:14:12 +0000 (17:14 +0200)
commit23d47267848129b520dd187c0db02f8b5b684372
treeffba162c22149d34f1e9e63c1a9c87db8fb60dad
parent3cc8a9f42ad0e903d25cc927e920b59c4a10b5d3
lib/colors: ncurses cleanup

* use proper paths to term.h
* keep ncurses support optional
* link with TINFO_LIBS (-ltinfo), or fallback to NCURSES_LIBS (-ltinfo -lncurses)
* don't include unnecessary ncurses.h (term.h is enough)

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am
lib/colors.c