diff options
-rw-r--r-- | include/compat/unistd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 805c06e..6c83e76 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h | |||
@@ -27,6 +27,13 @@ unsigned int sleep(unsigned int seconds); | |||
27 | 27 | ||
28 | #ifndef HAVE_GETENTROPY | 28 | #ifndef HAVE_GETENTROPY |
29 | int getentropy(void *buf, size_t buflen); | 29 | int getentropy(void *buf, size_t buflen); |
30 | #else | ||
31 | /* | ||
32 | * Solaris 11.3 adds getentropy(2), but defines the function in sys/random.h | ||
33 | */ | ||
34 | #if defined(__sun) | ||
35 | #include <sys/random.h> | ||
36 | #endif | ||
30 | #endif | 37 | #endif |
31 | 38 | ||
32 | #define pledge(request, paths) 0 | 39 | #define pledge(request, paths) 0 |