produce a error if platform has no arc4random hook
ok deraadt@ beck@
This commit is contained in:
parent
35e2d8d048
commit
d328203f63
@ -1,16 +1,17 @@
|
|||||||
#ifdef __linux__
|
#if defined(__linux__)
|
||||||
#include "arc4random_linux.h"
|
#include "arc4random_linux.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#elif defined(__APPLE__)
|
||||||
#include "arc4random_osx.h"
|
#include "arc4random_osx.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __sun
|
#elif defined(__sun)
|
||||||
#include "arc4random_solaris.h"
|
#include "arc4random_solaris.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __WIN32
|
#elif defined(__WIN32)
|
||||||
#include "arc4random_win.h"
|
#include "arc4random_win.h"
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error "No arc4random hooks defined for this platform."
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user