Debian Codegraph @

monero/contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch

raw
1 diff --git a/configure.ac b/configure.ac
2 index 9e2de27c..0fa85c2d 100644
3 --- a/configure.ac
4 +++ b/configure.ac
5 @@ -807,6 +807,10 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[
6 # include <sys/random.h>
7 #endif
8 ]], [[
9 +#ifdef __linux__
10 +# error getrandom() is currently disabled on Linux to support glibc < 2.25
11 +#endif
12 +
13 unsigned char buf;
14 (void) getrandom((void *) &buf, 1U, 0U);
15 ]])],
16 @@ -825,6 +829,9 @@ unsigned char buf;
17 # include <sys/random.h>
18 #endif
19 ]], [[
20 +#ifdef __linux__
21 +# error getentropy() is currently disabled on Linux to support glibc < 2.25
22 +#endif
23 #ifdef __APPLE__
24 # error getentropy() is currently disabled on Apple operating systems
25 #endif