mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
23 lines
581 B
Plaintext
23 lines
581 B
Plaintext
From ff88baec5a92771eff80644cd2d46c5264d77218 Mon Sep 17 00:00:00 2001
|
|
From: Schrijvers Luc <begasus@gmail.com>
|
|
Date: Fri, 30 Aug 2024 21:26:31 +0200
|
|
Subject: Haiku doesn't have GIT_RAND_GETENTROPY
|
|
|
|
|
|
diff --git a/src/util/rand.c b/src/util/rand.c
|
|
index d28e4aa..db343af 100644
|
|
--- a/src/util/rand.c
|
|
+++ b/src/util/rand.c
|
|
@@ -10,7 +10,7 @@ See <http://creativecommons.org/publicdomain/zero/1.0/>. */
|
|
#include "rand.h"
|
|
#include "runtime.h"
|
|
|
|
-#if defined(GIT_RAND_GETENTROPY)
|
|
+#if defined(GIT_RAND_GETENTROPY) && !defined(__HAIKU__)
|
|
# include <sys/random.h>
|
|
#endif
|
|
|
|
--
|
|
2.45.2
|
|
|