diff --git a/src/conio/curs_fix.h b/src/conio/curs_fix.h index 5bfad8c40246f059111b8208e54cce34d276489d..a98cbe592ab0cdced60e01c27dc196d86a75b05c 100644 --- a/src/conio/curs_fix.h +++ b/src/conio/curs_fix.h @@ -35,6 +35,13 @@ #define _XOPEN_SOURCE_EXTENDED 1 #include <ncurses.h> #else + #ifdef __OpenBSD__ + /* OpenBSD appears to ship with an old (5.7 from November 02, 2008) version + * of ncurses. This apparently predates both _XOPEN_SOURCE >= 500 and + * NCURSES_WIDECHAR support for enabling wide characters. + * so, define _XOPEN_SOURCE_EXTENDED to get these. */ + #define _XOPEN_SOURCE_EXTENDED 1 + #endif #define NCURSES_WIDECHAR 1 #ifdef XCURSES #include <xcurses.h>