Bug 201444

Summary: [PATCH] net/drawterm fdclose(3) redefinition fix for 11-CURRENT
Product: Ports & Packages Reporter: winston
Component: Individual Port(s)Assignee: Steven Kreuzer <skreuzer>
Status: Closed FIXED    
Severity: Affects Only Me CC: skreuzer
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
the fdclose redefinition patch none

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 freebsd_triage 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

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