From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:31 +0000 (+0000) Subject: Include ncurses.h where needed X-Git-Tag: v1.4b1~325 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1266a01e477c3efb2ac8aa541379ad86616ec99a;p=thirdparty%2FPython%2Fcpython.git Include ncurses.h where needed --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e57e80216469..25a18a5a624d 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