mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Include ncurses.h where needed
This commit is contained in:
parent
468fc6af68
commit
1266a01e47
1 changed files with 5 additions and 0 deletions
|
|
@ -145,7 +145,12 @@ None notimeout(int) int=0 or int=1
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_NCURSES_H
|
||||||
|
/* Now let's hope there aren't systems that have a broken ncurses.h */
|
||||||
|
#include <ncurses.h>
|
||||||
|
#else
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue