how about a 'snowleopardfixes' library port?

Rainer Müller raimue at macports.org
Wed Aug 24 01:06:46 PDT 2016


On 2016-08-23 19:13, Ryan Schmidt wrote:
> I would prefer you work with the developers of the affected software packages to get the necessary compatibility functions into their sources. This will help all Snow Leopard users, not just those using MacPorts.  

I agree that fixing bugs in upstream is preferable.

However, the functions getline() and strnlen() were already standardized
in POSIX.1-2008. Assuming these functions to be available is reasonable
today. I would totally understand if upstream rejects the burden of
supporting legacy systems.

@Ken:
Just another thought, the declaration could be in its own file,
referenced with the compile option -include in CFLAGS/CXXFLAGS, with
conditional #ifdef to add extern "C" for C++. The unused declaration
should not do any harm in other compile units. That way you could even
avoid generating patches for the ports.

Rainer


More information about the macports-dev mailing list