From 0592bdfaf97db6f328d928afef100913d10b7b1e Mon Sep 17 00:00:00 2001
From: Charles Wright <cvwright@futo.org>
Date: Wed, 14 Jun 2023 14:37:30 -0500
Subject: [PATCH] Check for Linux before trying to import sys/random.h

---
 Sources/Cbsspeke/bsspeke.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Sources/Cbsspeke/bsspeke.c b/Sources/Cbsspeke/bsspeke.c
index fc83abe..b7fab2c 100644
--- a/Sources/Cbsspeke/bsspeke.c
+++ b/Sources/Cbsspeke/bsspeke.c
@@ -22,7 +22,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#if defined(__linux__)
 #include <sys/random.h>
+#endif
 
 /*
 For Emscripten compilation to Javascript use the following:
-- 
GitLab