pass through enable malloc build for dragonflybsd. (#614)
This commit is contained in:
@@ -452,7 +452,6 @@ if(NOT SNMALLOC_HEADER_ONLY_LIBRARY)
|
||||
if (WIN32
|
||||
OR (CMAKE_SYSTEM_NAME STREQUAL NetBSD)
|
||||
OR (CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
|
||||
OR (CMAKE_SYSTEM_NAME STREQUAL DragonFly)
|
||||
OR (CMAKE_SYSTEM_NAME STREQUAL SunOS))
|
||||
# Windows does not support aligned allocation well enough
|
||||
# for pass through.
|
||||
|
||||
@@ -45,6 +45,11 @@ namespace snmalloc::external_alloc
|
||||
{
|
||||
using ::malloc_usable_size;
|
||||
}
|
||||
# elif defined(__DragonFly__)
|
||||
namespace snmalloc::external_alloc
|
||||
{
|
||||
using ::malloc_usable_size;
|
||||
}
|
||||
# else
|
||||
# error Define malloc size macro for this platform.
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user