Bug 201444 - [PATCH] net/drawterm fdclose(3) redefinition fix for 11-CURRENT
Summary: [PATCH] net/drawterm fdclose(3) redefinition fix for 11-CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steven Kreuzer
Keywords: patch
Depends on:
Reported: 2015-07-09 20:40 UTC by winston
Modified: 2015-07-14 14:49 UTC (History)
1 user (show)

See Also:

the fdclose redefinition patch (326 bytes, text/x-chdr)
2015-07-09 20:40 UTC, winston
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description winston 2015-07-09 20:40:27 UTC
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).
Comment 1 commit-hook freebsd_committer 2015-07-14 14:48:20 UTC
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

  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)