summaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/random.c b/src/random.c
index a9e4c9c..ce6db7c 100644
--- a/src/random.c
+++ b/src/random.c
@@ -198,8 +198,10 @@ static bool os_random_buf(void* buf, size_t buf_len) {
arc4random_buf(buf, buf_len);
return true;
}
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__HAIKU__)
+#if defined(__linux__)
#include <sys/syscall.h>
+#endif
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>