Bug 208815 - net/fspd: fix build on current
Summary: net/fspd: fix build on current
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 13:20 UTC by Dmitry Marakasov
Modified: 2016-04-24 22:42 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hsn)


Attachments
Patch (678 bytes, patch)
2016-04-15 13:20 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer 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 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