aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/rand_xor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
index 3668ac9b84a..81b64f1ea71 100644
--- a/src/util/rand_xor.c
+++ b/src/util/rand_xor.c
@@ -22,7 +22,9 @@
*
*/
-#if defined(__linux__)
+#include "detect_os.h"
+
+#if !DETECT_OS_WINDOWS
#if defined(HAVE_GETRANDOM)
#include <sys/random.h>
#endif
@@ -63,7 +65,7 @@ s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed)
return;
}
-#if defined(__linux__)
+#if !DETECT_OS_WINDOWS
size_t seed_size = sizeof(uint64_t) * 2;
#if defined(HAVE_GETRANDOM)