From 52a1a4b7e96899e8f16e666b6e733d1472606139 Mon Sep 17 00:00:00 2001 From: "mark.dickinson" Date: Sun, 6 Sep 2009 21:21:05 +0000 Subject: [PATCH] Issue #6848: Fix curses module build failure on OS X 10.6. git-svn-id: http://svn.python.org/projects/python/trunk@74693 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Include/py_curses.h | 7 ++++++- Misc/NEWS | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Include/py_curses.h b/Include/py_curses.h index f38f76543b..e4c0a6e2c5 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__ /* diff --git a/Misc/NEWS b/Misc/NEWS index def387d430..94f4399639 100644 --- 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. -- 2.11.4.GIT