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