netbsd.libcurses: patch around funopen2 now instead of funopen

This commit is contained in:
Will Dietz 2018-09-20 23:20:31 -05:00
parent 9e2bd0ddc2
commit 353d994254

View File

@ -569,7 +569,7 @@ in rec {
MKPIC = if stdenv.isDarwin then "no" else "yes";
postPatch = lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace printw.c \
--replace "funopen(win, NULL, __winwrite, NULL, NULL)" NULL \
--replace "funopen2(win, NULL, winwrite, NULL, NULL, NULL)" NULL \
--replace "__strong_alias(vwprintw, vw_printw)" 'extern int vwprintw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_printw")));'
substituteInPlace scanw.c \
--replace "__strong_alias(vwscanw, vw_scanw)" 'extern int vwscanw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_scanw")));'