(libco) Always use posix_memalign for iOS

This commit is contained in:
twinaphex 2015-07-30 05:46:15 +02:00
parent 973be7030d
commit a095ccbdb6

View File

@ -46,7 +46,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
{
size = (size + 1023) & ~1023;
cothread_t handle = 0;
#if HAVE_POSIX_MEMALIGN >= 1
#if defined(__APPLE__) || HAVE_POSIX_MEMALIGN >= 1
if (posix_memalign(&handle, 1024, size + 256) < 0)
return 0;
#else