13
0

fix compilation w/o posix_malign

This commit is contained in:
Robin Gareus 2015-07-19 23:24:19 +02:00
parent 2f10fb5b96
commit 7742d07b3a

View File

@ -47,8 +47,6 @@ int cache_aligned_malloc (void** memptr, size_t size)
return 0;
}
#else
std::string << string_compose (_("Memory allocation error: malloc (%1 * %2)"),
CPU_CACHE_ALIGN, size) << endmsg;
if (((*memptr) = malloc (size)) == 0) {
fatal << string_compose (_("Memory allocation error: malloc (%1 * %2) failed (%3)"),
CPU_CACHE_ALIGN, size, strerror (errno)) << endmsg;