diff --git a/libretro-common/libco/armeabi.c b/libretro-common/libco/armeabi.c index 24dc88b747..8ef0299b88 100644 --- a/libretro-common/libco/armeabi.c +++ b/libretro-common/libco/armeabi.c @@ -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