The ncurses work is covered by the ncurses infrastructure blanket and the use of errno.h header over extern errno is "just fix it".