$NetBSD: patch-aa,v 1.2 2015/04/24 03:24:32 rodent Exp $ * On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards against multiple definition of wchar_t and wint_t. --- Include/py_curses.h.orig 2014-10-12 07:03:52.000000000 +0000 +++ Include/py_curses.h @@ -44,6 +44,21 @@ #endif #endif +#ifdef __NetBSD__ +/* +** On NetBSD, [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