fix compilation w/o posix_malign
This commit is contained in:
parent
2f10fb5b96
commit
7742d07b3a
@ -47,8 +47,6 @@ int cache_aligned_malloc (void** memptr, size_t size)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
std::string << string_compose (_("Memory allocation error: malloc (%1 * %2)"),
|
|
||||||
CPU_CACHE_ALIGN, size) << endmsg;
|
|
||||||
if (((*memptr) = malloc (size)) == 0) {
|
if (((*memptr) = malloc (size)) == 0) {
|
||||||
fatal << string_compose (_("Memory allocation error: malloc (%1 * %2) failed (%3)"),
|
fatal << string_compose (_("Memory allocation error: malloc (%1 * %2) failed (%3)"),
|
||||||
CPU_CACHE_ALIGN, size, strerror (errno)) << endmsg;
|
CPU_CACHE_ALIGN, size, strerror (errno)) << endmsg;
|
||||||
@ -113,4 +111,4 @@ void aligned_free (void* memptr)
|
|||||||
#else
|
#else
|
||||||
free (memptr);
|
free (memptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user