about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/cpython/2.7/2.6.5-ncurses-abi6.patch
blob: e1cf5ad4bbf959d88c3f8c0386a221f0ec4e4703 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- origsrc/Include/py_curses.h	2009-09-06 16:23:05.000000000 -0500
+++ src/Include/py_curses.h	2010-04-14 15:21:23.008971400 -0500
@@ -17,6 +17,13 @@
 #define NCURSES_OPAQUE 0
 #endif /* __APPLE__ */
 
+#ifdef __CYGWIN__
+/* the following define is necessary for Cygwin; without it, the
+   Cygwin-supplied ncurses.h sets NCURSES_OPAQUE to 1, and then Python
+   can't get at the WINDOW flags field. */
+#define NCURSES_INTERNALS
+#endif /* __CYGWIN__ */
+
 #ifdef __FreeBSD__
 /*
 ** On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards