summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-13 09:12:41 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-13 09:12:41 (GMT)
commit6953233a35e9196e7ed40f73c2e174cb53ac78f5 (patch)
tree53fb9c9ccfe0d0c2a1e4616e72f1a1eb649430ad /Include/py_curses.h
parent1c07b4b4fbf6c89c6789343e21ea16f52f905f2d (diff)
downloadcpython-6953233a35e9196e7ed40f73c2e174cb53ac78f5.zip
cpython-6953233a35e9196e7ed40f73c2e174cb53ac78f5.tar.gz
cpython-6953233a35e9196e7ed40f73c2e174cb53ac78f5.tar.bz2
Check for term.h and include it on non-ncurses system to get a declaration
for tigetstr.
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index 62afb5e..b5f7e54 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -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