From 74077967a315177cc399f02a6e32bf16b23330ed Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 29 Apr 2021 18:52:38 +0000 Subject: [PATCH] Fixing PAL haiku build similarly to NetBSD. --- src/pal/pal_haiku.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pal/pal_haiku.h b/src/pal/pal_haiku.h index 0fcb8a8..52bb7ef 100644 --- a/src/pal/pal_haiku.h +++ b/src/pal/pal_haiku.h @@ -1,6 +1,18 @@ #pragma once #if defined(__HAIKU__) +# include + +namespace snmalloc +{ + template + int getentropy(Args...) + { + assert(0 && "Unreachable path"); + return -1; + } +} + # include "pal_posix.h" # include