diff -rupN Python-2.7.14/Include/py_curses.h Python-2.7.14-new/Include/py_curses.h
--- Python-2.7.14/Include/py_curses.h 2017-10-31 18:36:39.737181204 +0100
+++ Python-2.7.14-new/Include/py_curses.h 2017-10-31 18:36:39.738181203 +0100
@@ -56,6 +56,10 @@
#endif
#endif
+#if defined(__MINGW32__) && !defined(_ISPAD)
+#define _ISPAD 0x10
+#endif
+
#ifdef HAVE_NCURSES_H
/* configure was checking <curses.h>, but we will
use <ncurses.h>, which has all these features. */