Skip to content

Commit

Permalink
pass through enable malloc build for dragonflybsd. (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored May 30, 2023
1 parent 55376aa commit d9f5bd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions src/snmalloc/mem/external_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9f5bd0

Please sign in to comment.