netbsd build fix.
getentropy not being guarded, providing prototype even tough we end up using the C++ api version.
This commit is contained in:
committed by
Matthew Parkinson
parent
f037bba0a2
commit
59d5b0b9b3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user