Gentoo's Bugzilla –
Attachment 803839 Details for
Bug 869128sys-libs/ncurses: does not set -D_XOPEN_SOURCE=600 on musl (was: app-crypt/pinentry-1.2.1: pinentry-curses.c:651:8: error: call to undeclared function 'addnwstr' (implicit function declaration))