diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e57e8021646..25a18a5a624 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -145,7 +145,12 @@ None notimeout(int) int=0 or int=1 #include "Python.h" +#ifdef HAVE_NCURSES_H +/* Now let's hope there aren't systems that have a broken ncurses.h */ +#include +#else #include +#endif typedef struct { PyObject_HEAD