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
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to