Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-07 01:21:58 +0300
committerJunio C Hamano <gitster@pobox.com>2022-04-07 01:21:59 +0300
commit95acb13a550cbc07a5ef38ffceb5678fac61acff (patch)
treebc1f9fe126f2430b2f6b5374bda606db64e9553c /git-compat-util.h
parent327933fbbc9b3dd40525373d70355be6482fca0c (diff)
parent5b52d9f15e311b82ee5f5c5ed9927c65b63731bf (diff)
Merge branch 'bc/csprng-mktemps'
Build fix. * bc/csprng-mktemps: git-compat-util: really support openssl as a source of entropy
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 4d444dca27..68a9b9cd97 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -525,6 +525,10 @@ void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
#include <openssl/x509v3.h>
#endif /* NO_OPENSSL */
+#ifdef HAVE_OPENSSL_CSPRNG
+#include <openssl/rand.h>
+#endif
+
/*
* Let callers be aware of the constant return value; this can help
* gcc with -Wuninitialized analysis. We restrict this trick to gcc, though,