diff --git a/src/override/memcpy.cc b/src/override/memcpy.cc index 43c27b2..6c858f4 100644 --- a/src/override/memcpy.cc +++ b/src/override/memcpy.cc @@ -11,7 +11,7 @@ using namespace snmalloc; // glibc lacks snprintf_l #if defined(__linux__) || defined(__OpenBSD__) || defined(__DragonFly__) || \ - defined(__HAIKU__) + defined(__HAIKU__) || defined(__sun) # define snprintf_l(buf, size, loc, msg, ...) \ snprintf(buf, size, msg, __VA_ARGS__) // Windows has it with an underscore prefix diff --git a/src/test/func/memory/memory.cc b/src/test/func/memory/memory.cc index 5127285..c6ce764 100644 --- a/src/test/func/memory/memory.cc +++ b/src/test/func/memory/memory.cc @@ -4,9 +4,9 @@ #include #include #include -#if defined(__linux__) && !defined(SNMALLOC_QEMU_WORKAROUND) +#if (defined(__linux__) || defined(__sun)) && !defined(SNMALLOC_QEMU_WORKAROUND) /* - * We only test allocations with limited AS on linux for now. + * We only test allocations with limited AS on linux and Solaris for now. * It should be a good representative for POSIX systems. * QEMU `setrlimit64` does not behave as the same as native linux, * so we need to exclude it from such tests.