posix_memalign workaround compile fix
@@ -1187,7 +1187,7 @@ int posix_memalign(void** memptr, size_t alignment, size_t size) {
}
*memptr = memalign(alignment, size);
if (*memptr == NULL) {
- return errno;
+ return 12; // Out of memory (ENOMEM)
}
return 0;
}
