aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-13 13:53:30 +0100
committerGravatar Sadie Powell2024-07-13 13:53:30 +0100
commitdfa3ca15da9bfe58b841f133bbe2b4c5f401d09f (patch)
tree648505588a28f982849b0e3a8b710a8dbee68ac2 /src/helperfuncs.cpp
parentMerge the compiler and compiler_info tests. (diff)
Fix using getentropy() on musl libc.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 16e97da1b..f6df1c819 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -27,6 +27,10 @@
#include <random>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
+
#include "inspircd.h"
#include "timeutils.h"
#include "utility/string.h"