From: Andrew MacIntyre Date: Wed, 11 Jun 2003 12:26:08 +0000 (+0000) Subject: fix the curses module build failure on FreeBSD, reported in SF #740234. X-Git-Tag: v2.3c1~495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a90117880b73294773c7975a3d0e66cdebf3b99;p=python fix the curses module build failure on FreeBSD, reported in SF #740234. --- diff --git a/Include/py_curses.h b/Include/py_curses.h index 713a24fadc..3ecf48fcdf 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 #else