Basic OpenBSD backend support.
Cannot enforce alignment so we just check its correctness.
This commit is contained in:
@@ -89,7 +89,7 @@ extern "C"
|
||||
return p;
|
||||
}
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
SNMALLOC_EXPORT void*
|
||||
SNMALLOC_NAME_MANGLE(reallocarray)(void* ptr, size_t nmemb, size_t size)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ extern "C"
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
SNMALLOC_EXPORT void* SNMALLOC_NAME_MANGLE(valloc)(size_t size)
|
||||
{
|
||||
return SNMALLOC_NAME_MANGLE(memalign)(OS_PAGE_SIZE, size);
|
||||
|
||||
Reference in New Issue
Block a user