summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-12-05 10:08:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-12-05 10:08:23 +0000
commit23b5c25a01a6738ea11526cc68bd99ca3c961a2f (patch)
treeba580018e8c2fb4487ed1e72c60176507b8e0a85
parent77bfd9b4f9406f767178da98cf76ab98b2ffa5ea (diff)
downloadskalibs-23b5c25a01a6738ea11526cc68bd99ca3c961a2f.tar.xz
Fix trygetrandom.c to correctly detect getrandom() on musl
-rw-r--r--src/sysdeps/trygetrandom.c1
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)