diff --git a/vendor/netbsd-curses/libcurses/tty.c b/vendor/netbsd-curses/libcurses/tty.c index 7dcdb9a..0ccbf06 100644 --- a/vendor/netbsd-curses/libcurses/tty.c +++ b/vendor/netbsd-curses/libcurses/tty.c @@ -592,7 +592,14 @@ isendwin(void) return _cursesi_screen->endwin ? TRUE : FALSE; } -#ifndef __FreeBSD__ +/* NetBSD declares fpurge() in (and so does every libc that kept + * the 4.4BSD call): a static definition here then contradicts the prototype + * -- "static declaration of 'fpurge' follows non-static declaration", which + * stopped the cross build (build/logs/release-2026-11-23h-cross.log:21830). + * The vendored copy is only for systems that have neither, __FreeBSD__ was + * the first of them. */ +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && \ + !defined(__DragonFly__) && !defined(__OpenBSD__) static int fpurge(FILE *f) { //dprintf(666, "warning: called fpurge\n"); fflush(f);