fix the curses module build failure on FreeBSD, reported in SF #740234.

This commit is contained in:
Andrew MacIntyre 2003-06-11 12:26:08 +00:00
parent 7e902b27e0
commit 1a90117880
1 changed files with 15 additions and 0 deletions

View File

@ -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