diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-06-11 12:26:08 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-06-11 12:26:08 (GMT) |
commit | 1a90117880b73294773c7975a3d0e66cdebf3b99 (patch) | |
tree | 71e426224d438b9d08ffc6547d141b58af07c36f /Include | |
parent | 7e902b27e062fdcab71fa1876d99d32bf5190279 (diff) | |
download | cpython-1a90117880b73294773c7975a3d0e66cdebf3b99.zip cpython-1a90117880b73294773c7975a3d0e66cdebf3b99.tar.gz cpython-1a90117880b73294773c7975a3d0e66cdebf3b99.tar.bz2 |
fix the curses module build failure on FreeBSD, reported in SF #740234.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/py_curses.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h index 713a24f..3ecf48f 100644 --- a/Include/py_curses.h +++ b/Include/py_curses.h @@ -12,6 +12,21 @@ #endif #endif +#ifdef __FreeBSD__ +/* +** On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards +** against multiple definition of wchar_t and wint_t. +*/ +#ifdef _XOPEN_SOURCE_EXTENDED +#ifndef _WCHAR_T +#define _WCHAR_T +#endif +#ifndef _WINT_T +#define _WINT_T +#endif +#endif +#endif + #ifdef HAVE_NCURSES_H #include <ncurses.h> #else |