diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-12-05 10:08:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-12-05 10:08:23 +0000 |
commit | 23b5c25a01a6738ea11526cc68bd99ca3c961a2f (patch) | |
tree | ba580018e8c2fb4487ed1e72c60176507b8e0a85 | |
parent | 77bfd9b4f9406f767178da98cf76ab98b2ffa5ea (diff) | |
download | skalibs-23b5c25a01a6738ea11526cc68bd99ca3c961a2f.tar.xz |
Fix trygetrandom.c to correctly detect getrandom() on musl
-rw-r--r-- | src/sysdeps/trygetrandom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysdeps/trygetrandom.c b/src/sysdeps/trygetrandom.c index 67a623d..b6cda18 100644 --- a/src/sysdeps/trygetrandom.c +++ b/src/sysdeps/trygetrandom.c @@ -8,6 +8,7 @@ #endif #include <sys/types.h> +#include <unistd.h> #include <sys/syscall.h> static int getrandom (void *buf, size_t buflen, unsigned int flags) |