NetBSD declares fpurge() in <stdio.h>, so a static definition in the vendored
libcurses contradicts the prototype and -Werror stops the cross build
(static declaration of 'fpurge' follows non-static declaration,
build/logs/release-2026-11-23h-cross.log:21830). FreeBSD was the only libc
the guard knew about; the four BSDs and macOS all carry the call.
Test: x86_64--netbsd-gcc -std=gnu11 -I. -I./libterminfo -I build/obj/destdir.amd64/usr/include -c libcurses/tty.c -> rc=0, no errors.