]> granicus.if.org Git - python/commitdiff
Include ncurses.h where needed
authorGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:31 +0000 (04:50 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:31 +0000 (04:50 +0000)
Modules/_cursesmodule.c

index e57e80216469c443f97e5af859d199bce2bfbd54..25a18a5a624d8bf75be28506ac0b203de2c0fd81 100644 (file)
@@ -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 <ncurses.h>
+#else
 #include <curses.h>
+#endif
 
 typedef struct {
        PyObject_HEAD