From 08d0f42cc524d55cbb637d8626b31503614eade2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 18 Nov 2020 17:13:21 +0000 Subject: [PATCH] Solaris based system build fix. malloc_usable_size or similar unsupported. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 177464f..a185e3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -283,7 +283,8 @@ if(NOT DEFINED SNMALLOC_ONLY_HEADER_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 DragonFly) + OR (CMAKE_SYSTEM_NAME STREQUAL SunOS)) # Windows does not support aligned allocation well enough # for pass through. # NetBSD, OpenBSD and DragonFlyBSD do not support malloc*size calls.