Bug 208815

Summary: net/fspd: fix build on current
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Some People CC: hsn
Priority: --- Flags: bugzilla: maintainer-feedback? (hsn)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2016-04-15 13:20:47 UTC
Created attachment 169336 [details]
Patch

fspd does not build on -current, because fdclose() was added to libc, and fspd reuses that name:

contrib/fspscan.c:153:17: error: too few arguments to function call, expected 2, have 0
        fdclose();
        ~~~~~~~ ^
/usr/include/stdio.h:402:1: note: 'fdclose' declared here
int      fdclose(FILE *, int *);
^

Attached patch fixes it.
Comment 1 Radim Kolar 2016-04-24 21:25:16 UTC
patch approved
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-04-24 22:42:11 UTC
A commit references this bug:

Author: amdmi3
Date: Sun Apr 24 22:41:28 UTC 2016
New revision: 413964
URL: https://svnweb.freebsd.org/changeset/ports/413964

Log:
  - Fix build on 11.x

  PR:		208815
  Submitted by:	amdmi3
  Approved by:	hsn@sendmail.cz (maintainer)

Changes:
  head/net/fspd/files/patch-contrib_fspscan.c