netbsd build fix.

getentropy not being guarded, providing prototype even tough we end up
 using the C++ api version.
This commit is contained in:
David Carlier
2021-04-12 19:12:34 +01:00
committed by Matthew Parkinson
parent f037bba0a2
commit 59d5b0b9b3

View File

@@ -1,6 +1,18 @@
#pragma once
#ifdef __NetBSD__
# include <cassert>
namespace snmalloc
{
template<typename... Args>
int getentropy(Args...)
{
assert(0 && "Unreachable path");
return -1;
}
}
# include "pal_bsd_aligned.h"
namespace snmalloc