Created attachment 158571 [details] the fdclose redefinition patch As of SVN revision r285140 FreeBSD 11-CURRENT has introduced a new stdio function fdclose(3) which shadows a net/drawterm function definition. Attached is a patch that shadows the stdio prototype with a macro, and then undefs it after including stdio.h. Unfortunately I only have a 11-CURRENT i386 system to test on, but it should work on all systems. (I used to rely on RedPorts but it's not available anymore).
A commit references this bug: Author: skreuzer Date: Tue Jul 14 14:47:32 UTC 2015 New revision: 392009 URL: https://svnweb.freebsd.org/changeset/ports/392009 Log: r285140 introduced a fdclose(3) function which shadows a net/drawterm function definition. Shadow the stdio prototype with a macro and undef it after including stdio.h Convert port to the USES framework Regenerate the patch-Make.pthread file using makepatch PR: 201444 Submitted by: winston@ml1.net (maintainer) Changes: head/net/drawterm/Makefile head/net/drawterm/files/patch-Make.pthread head/net/drawterm/files/patch-include_unix.h