aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-01 15:34:21 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-01 15:34:21 -0400
commit362b8b813352203c612375a03aee52856f01199d (patch)
treed0d4598867d9e8effae0410c6ee8ee437801ce23
parentf05d1f90adb5aedcefb43c06311cce1395a01cdc (diff)
Include stdlib
-rw-r--r--src/stdlib/lists.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdlib/lists.c b/src/stdlib/lists.c
index f5be09e9..c73d20dd 100644
--- a/src/stdlib/lists.c
+++ b/src/stdlib/lists.c
@@ -275,6 +275,7 @@ public List_t List$sorted(List_t list, Closure_t comparison, int64_t padded_item
}
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#include <stdlib.h>
static ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) {
(void)flags;
arc4random_buf(buf, buflen);