From 1266a01e477c3efb2ac8aa541379ad86616ec99a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:31 +0000 Subject: [PATCH] Include ncurses.h where needed --- Modules/_cursesmodule.c | 5 +++++ 1 file changed, 5 insertions(+) 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