add solaris include for getentropy(2)
This commit is contained in:
parent
d0ff644edc
commit
8c91563f60
@ -27,6 +27,13 @@ unsigned int sleep(unsigned int seconds);
|
|||||||
|
|
||||||
#ifndef HAVE_GETENTROPY
|
#ifndef HAVE_GETENTROPY
|
||||||
int getentropy(void *buf, size_t buflen);
|
int getentropy(void *buf, size_t buflen);
|
||||||
|
#else
|
||||||
|
/*
|
||||||
|
* Solaris 11.3 adds getentropy(2), but defines the function in sys/random.h
|
||||||
|
*/
|
||||||
|
#if defined(__sun)
|
||||||
|
#include <sys/random.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define pledge(request, paths) 0
|
#define pledge(request, paths) 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user