Page MenuHomeFreeBSD

gnu/usr.bin/grep/savedir.c: Fix "implicit declaration of function 'isdir' is invalid in C99"
ClosedPublic

Authored by bofh on Jun 2 2015, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 8:10 AM
Unknown Object (File)
Wed, Apr 17, 8:09 AM
Unknown Object (File)
Feb 24 2024, 2:56 AM
Unknown Object (File)
Jan 9 2024, 2:14 PM
Unknown Object (File)
Dec 20 2023, 12:30 AM
Unknown Object (File)
Jul 1 2023, 12:55 AM
Unknown Object (File)
Jun 24 2023, 7:47 PM
Unknown Object (File)
May 9 2023, 12:08 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bofh retitled this revision from to gnu/usr.bin/grep/savedir.c: Fix "implicit declaration of function 'isdir' is invalid in C99".
bofh updated this object.
bofh edited the test plan for this revision. (Show Details)
bofh added a reviewer: bapt.
bofh set the repository for this revision to rS FreeBSD src repository - subversion.

Technically this patch is OK.

However, we may want to match the upstream code which
does not include system.h. Instead if forward declares isdir(). See:
http://git.savannah.gnu.org/cgit/grep.git/tree/lib/savedir.c?id=v2.6

the latest version of GNU grep deleted savedir.c, so we would have to match v2.6

gnu grep will never be updated because of licenses issue, so upstreaming here is not a big issue

I believe GNU Grep from 2.5.2 and onward changed to GPLv3 which prohibits from upgrading to newer version in base and hence we must stay with 2.5.1. :(

rodrigc edited edge metadata.

I'm OK with this.

This revision is now accepted and ready to land.Jul 30 2015, 12:39 PM
bapt requested changes to this revision.Jul 30 2015, 3:47 PM
bapt edited edge metadata.
bapt added inline comments.
savedir.c
73 ↗(On Diff #5879)

Should be "system.h" not <system.h>

This revision now requires changes to proceed.Jul 30 2015, 3:47 PM
This revision was automatically updated to reflect the committed changes.