mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Check for term.h and include it on non-ncurses system to get a declaration
for tigetstr.
This commit is contained in:
parent
1c07b4b4fb
commit
6953233a35
4 changed files with 10 additions and 3 deletions
|
@ -6,6 +6,10 @@
|
|||
#include <ncurses.h>
|
||||
#else
|
||||
#include <curses.h>
|
||||
#ifdef HAVE_TERM_H
|
||||
/* for tigetstr, which is not declared in SysV curses */
|
||||
#include <term.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue