add solaris include for getentropy(2)

This commit is contained in:
Brent Cook 2016-01-18 09:50:23 -06:00
parent d0ff644edc
commit 8c91563f60

View File

@ -27,6 +27,13 @@ unsigned int sleep(unsigned int seconds);
#ifndef HAVE_GETENTROPY
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
#define pledge(request, paths) 0