From f731bc169ba0f4810b3126ef0fae30583712dc7b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 18 Nov 2021 07:39:29 +0000 Subject: [PATCH] build fix for some 3rd party oses. --- src/override/memcpy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/override/memcpy.cc b/src/override/memcpy.cc index 6d1ebce..b854e16 100644 --- a/src/override/memcpy.cc +++ b/src/override/memcpy.cc @@ -10,7 +10,8 @@ using namespace snmalloc; // glibc lacks snprintf_l -#ifdef __linux__ +#if defined(__linux__) || defined(__OpenBSD__) || defined(__DragonFly__) || \ + defined(__HAIKU__) # define snprintf_l(buf, size, loc, msg, ...) \ snprintf(buf, size, msg, __VA_ARGS__) // Windows has it with an underscore prefix