phusion / passenger

A fast and robust web server and application server for Ruby, Python and Node.js
https://www.phusionpassenger.com/
MIT License
5.01k stars 547 forks source link

Restore support for MacOS < 10.15 #2547

Open distler opened 5 months ago

distler commented 5 months ago

Commit ccc753d removed support for MacOS < 10.15 because of the use of aligned_alloc. This could be worked around by

#if PRE_HIGH_SIERRA
    posix_memalign((void **) &buf, alignof(struct mbuf_block), size);
#else
    buf = (char *) aligned_alloc(alignof(struct mbuf_block), size);
#endif

in src/cxx_supportlib/MemoryKit/mbuf.cpp (two instances) and reverting some of the "code-cleanup" in Commit a067758.

distler commented 3 months ago

A patch (against 6.0.23): macos.patch.