build fix for some 3rd party oses.

This commit is contained in:
David Carlier
2021-11-18 07:39:29 +00:00
committed by David Chisnall
parent faa80037bb
commit f731bc169b

View File

@@ -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