[Python-checkins] r74693 - in python/trunk: Include/py_curses.h Misc/NEWS

mark.dickinson python-checkins at python.org
Sun Sep 6 23:21:05 CEST 2009


Author: mark.dickinson
Date: Sun Sep 6 23:21:05 2009
New Revision: 74693
Log:
Issue #6848: Fix curses module build failure on OS X 10.6.
Modified:
 python/trunk/Include/py_curses.h
 python/trunk/Misc/NEWS
Modified: python/trunk/Include/py_curses.h
==============================================================================
--- python/trunk/Include/py_curses.h	(original)
+++ python/trunk/Include/py_curses.h	Sun Sep 6 23:21:05 2009
@@ -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__
 /*
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun Sep 6 23:21:05 2009
@@ -1293,6 +1293,8 @@
 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.
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /