passenger icon indicating copy to clipboard operation
passenger copied to clipboard

Restore support for MacOS < 10.15

Open distler opened this issue 8 months ago • 1 comments

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 avatar May 27 '24 07:05 distler