Bug #1896
closed
scandir select/filter not taking const struct dirent *
Added by alexh about 14 years ago.
Updated about 14 years ago.
Description
Our scandir(3) takes a functor int (*select)(struct dirent *) while Linux, NetBSD
and FreeBSD take int (*select)(const struct dirent *).
This would incindentally also fix compilation of devel/libcompizconfig.
Anyone opposed to changing it to const struct dirent * ?
Regards,
Alex
Files
:Our scandir(3) takes a functor int (*select)(struct dirent *) while Linux, NetBSD
:and FreeBSD take int (*select)(const struct dirent *).
:
:This would incindentally also fix compilation of devel/libcompizconfig.
:
:Anyone opposed to changing it to const struct dirent * ?
:
:Regards,
:Alex
Sounds good to me.
-Matt
Matthew Dillon
<dillon@backplane.com>
I've committed a fix. Since it includes more changes than just what was
proposed originally, could you try again and check if it actually fixed the
devel/libcompizconfig issue?
devel/libcompizconfig seems to compile perfectly now, thanks.
Closing, committed in edacbda68e2b4fcf6f29f472d4c2720d202639dc.
Also available in: Atom
PDF