summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-06 21:24:55 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-06 21:24:55 (GMT)
commit5ea7d64b155ef720506ae4fcbeeb2819c20e869c (patch)
tree5e0fe400d26fbded200404d8780f5699728a57d9 /Include
parent7a49a8eb43de8626846ef160d7102084f5a5ad14 (diff)
downloadcpython-5ea7d64b155ef720506ae4fcbeeb2819c20e869c.zip
cpython-5ea7d64b155ef720506ae4fcbeeb2819c20e869c.tar.gz
cpython-5ea7d64b155ef720506ae4fcbeeb2819c20e869c.tar.bz2
Merged revisions 74693 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74693 | mark.dickinson | 2009-09-06 22:21:05 +0100 (Sun, 06 Sep 2009) | 2 lines Issue #6848: Fix curses module build failure on OS X 10.6. ........
Diffstat (limited to 'Include')
-rw-r--r--Include/py_curses.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index ae7b12b..a891c42 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -10,7 +10,12 @@
#ifdef _BSD_WCHAR_T_DEFINED_
#define _WCHAR_T
#endif
-#endif
+
+/* the following define is necessary for OS X 10.6; without it, the
+ Apple-supplied ncurses.h sets NCURSES_OPAQUE to 1, and then Python
+ can't get at the WINDOW flags field. */
+#define NCURSES_OPAQUE 0
+#endif /* __APPLE__ */
#ifdef __FreeBSD__
/*