#70702 closed enhancement (fixed)
Provide a compatibility wrapper for scandir in legacy-support
Reported by: | fhgwright (Fred Wright) | Owned by: | fhgwright (Fred Wright) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mascguy (Christopher Nielsen), barracuda156 | |
Port: | legacy-support |
Description
The signature for scandir()
changed between the 10.7 and 10.8 SDKs, causing a pointer-type mismatch in some builds. This is usually just a warning, but gcc14
started treating this as an error by default, causing broken builds.
The fix should consist of creating a wrapper function to "launder" the argument type, and then optionally defining scandir
as a macro expanding to the wrapper. This can't be done unconditionally, since that could break anything that assumes the default behavior.
Change History (2)
comment:1 Changed 4 weeks ago by fhgwright (Fred Wright)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 Changed 4 weeks ago by fhgwright (Fred Wright)
Note: See
TracTickets for help on using
tickets.
In 866a0807191148098974d0f502a9409b49fb46e0/macports-legacy-support (master):