diff options
Diffstat (limited to 'sys-libs/ncurses/files/ncurses-5.9-xopen-source.patch')
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.9-xopen-source.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-libs/ncurses/files/ncurses-5.9-xopen-source.patch b/sys-libs/ncurses/files/ncurses-5.9-xopen-source.patch new file mode 100644 index 000000000000..4dd7817e43e5 --- /dev/null +++ b/sys-libs/ncurses/files/ncurses-5.9-xopen-source.patch @@ -0,0 +1,15 @@ +fix from upstream + +https://bugs.gentoo.org/462116 + +--- a/include/curses.h.in ++++ b/include/curses.h.in +@@ -154,7 +154,7 @@ typedef unsigned @cf_cv_typeof_mmask_t@ mmask_t; + * conflicting) when _XOPEN_SOURCE is 500 or greater. + */ + #undef NCURSES_WIDECHAR +-#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_XPG5) ++#if defined(_XOPEN_SOURCE_EXTENDED) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 >= 500)) + #define NCURSES_WIDECHAR + #endif + |