diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-06 21:21:05 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-06 21:21:05 (GMT) |
commit | 6b3f1ef190bc89c4fcc5dbfdc3ca1cc15d5e6acc (patch) | |
tree | e0632617c3c7fcabe007f867d260a179ac870e7c /Include | |
parent | 752a2daf323572cbeaa6dec42a807fc421d577c3 (diff) | |
download | cpython-6b3f1ef190bc89c4fcc5dbfdc3ca1cc15d5e6acc.zip cpython-6b3f1ef190bc89c4fcc5dbfdc3ca1cc15d5e6acc.tar.gz cpython-6b3f1ef190bc89c4fcc5dbfdc3ca1cc15d5e6acc.tar.bz2 |
Issue #6848: Fix curses module build failure on OS X 10.6.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/py_curses.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h index f38f765..e4c0a6e 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__ /* |