[MacPorts] #70702: Provide a compatibility wrapper for scandir in legacy-support
MacPorts
noreply at macports.org
Mon Sep 9 19:41:33 UTC 2024
#70702: Provide a compatibility wrapper for scandir in legacy-support
-------------------------+----------------------------
Reporter: fhgwright | Owner: fhgwright
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: legacy-support
-------------------------+----------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/70702>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list