Message 99373 - Python tracker
On OpenBSD the ncurses.h header has been broken for quite some time, see e.g. http://bugs.python.org/issue1244610. The problem is that when _XOPEN_SOURCE_EXTENDED is defined, wchar_t is defined twice. I can confirm that it is still broken on 4.6, but it appears that it has been fixed in current. So I propose to use the old method up to 4.6, and use the new method from 4.7 on. I attach a patch that has been tested on an OpenBSD snapshot (which will become version 4.7).