Patch #1012280: Include curses.h for term.h check. Fixes #933795.
Will backport to 2.3.
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 7c45736..a9f3d20 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -76,6 +76,9 @@
 /* Define if you have the 'ctermid_r' function. */
 #undef HAVE_CTERMID_R
 
+/* Define to 1 if you have the <curses.h> header file. */
+#undef HAVE_CURSES_H
+
 /* Define to 1 if you have the device macros. */
 #undef HAVE_DEVICE_MACROS