More term crazyness warnings fixing.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 20 Dec 2015 20:04:34 +0000 (15:04 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 20 Dec 2015 20:04:34 +0000 (15:04 -0500)
commit35948676b7390a6061db87f0c4d4d27a6bc6d951
treef0cf150767ee3e6fd206d0e0ce99b1d0afeb415c
parentf7e5f0c2935452194ac6bceb527cc329f7f230f8
More term crazyness warnings fixing.

* configure.ac (CURSES_H_FILE): Only define if we have one.
(TERMCAP_H_FILE): Ditto.
(TERM_H_FILE): Ditto.
(HAVE_TPARM_PROTOTYPE): Detect we tparm prototype is available.

* src/ui/TTY/terminfo.c: Only include TERM_H_FILE is we have it.
Properly decide when to define a tparm prototype, based on when
configure detected it.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
configure.ac
src/ui/TTY/terminfo.c