]> granicus.if.org Git - python/commitdiff
Issue #6848: Fix curses module build failure on OS X 10.6.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 6 Sep 2009 21:21:05 +0000 (21:21 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 6 Sep 2009 21:21:05 +0000 (21:21 +0000)
Include/py_curses.h
Misc/NEWS

index f38f76543b150c25bdb9930178f42d06a9acfd1c..e4c0a6e2c5933158b8ea3bca80f7488b847df952 100644 (file)
 #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__
 /*
index def387d430d56e37bb7c9bab6d3be6147825cc36..94f4399639098db108b00c74f1b13a6a9790c35a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1293,6 +1293,8 @@ C-API
 Extension Modules
 -----------------
 
+- Issue #6848: Fix curses module build failure on OS X 10.6.
+
 - Fix a segfault in expat when given a specially crafted input lead to the
   tokenizer not stopping.