Fixing PAL haiku build similarly to NetBSD.

This commit is contained in:
David Carlier
2021-04-29 18:52:38 +00:00
committed by Matthew Parkinson
parent 017d4b1a59
commit 74077967a3

View File

@@ -1,6 +1,18 @@
#pragma once
#if defined(__HAIKU__)
# include <cassert>
namespace snmalloc
{
template<typename... Args>
int getentropy(Args...)
{
assert(0 && "Unreachable path");
return -1;
}
}
# include "pal_posix.h"
# include <sys/mman.h>