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:
Date: Tue Jul 14 14:47:32 UTC 2015
New revision: 392009
r285140 introduced a fdclose(3) function which shadows a net/drawterm function
definition. Shadow the stdio prototype with a macro and undef it after
Convert port to the USES framework
Regenerate the patch-Make.pthread file using makepatch
Submitted by: email@example.com (maintainer)