aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-16 20:37:04 +0100
committerGravatar Sadie Powell2026-04-16 20:37:04 +0100
commitdd1bb2ca4cd00f243da4b3b8c86e19d0b539c4ad (patch)
tree6a3f5c8640379231548146564ee3ce6842283461 /src/helperfuncs.cpp
parentSkip the contrib directory on Windows. (diff)
parentAdd support for getentropy() on macOS. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 057c24825..34fcccd7d 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -28,7 +28,11 @@
#include <random>
#ifndef _WIN32
-# include <unistd.h>
+# ifdef __APPLE__
+# include <sys/random.h>
+# else
+# include <unistd.h>
+# endif
#endif
#include "inspircd.h"