summaryrefslogtreecommitdiff
path: root/src/librandom
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-12-05 10:13:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-12-05 10:13:52 +0000
commit9eb3a42e1a2f14b49ece03b661280db53f15a546 (patch)
tree38cce2f1dcd2b74e26b41875f1cf00f7fe6f4657 /src/librandom
parent23b5c25a01a6738ea11526cc68bd99ca3c961a2f (diff)
downloadskalibs-9eb3a42e1a2f14b49ece03b661280db53f15a546.tar.xz
Also fix actual random_string compilation with musl and getrandom()...
Diffstat (limited to 'src/librandom')
-rw-r--r--src/librandom/random_string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librandom/random_string.c b/src/librandom/random_string.c
index 83aca2c..6ccd865 100644
--- a/src/librandom/random_string.c
+++ b/src/librandom/random_string.c
@@ -18,6 +18,7 @@ void random_string (char *s, unsigned int n)
#include <skalibs/nonposix.h>
#include <sys/types.h>
+#include <unistd.h>
#include <sys/syscall.h>
#include <skalibs/random.h>