summaryrefslogtreecommitdiffhomepage
path: root/patches/libressl-4.0.0.local.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/libressl-4.0.0.local.patch')
-rw-r--r--patches/libressl-4.0.0.local.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/libressl-4.0.0.local.patch b/patches/libressl-4.0.0.local.patch
new file mode 100644
index 00000000..11e45d19
--- /dev/null
+++ b/patches/libressl-4.0.0.local.patch
@@ -0,0 +1,19 @@
+diff -ru libressl-3.7.1.orig/crypto/compat/arc4random_linux.h libressl-3.7.1/crypto/compat/arc4random_linux.h
+--- libressl-3.7.1.orig/crypto/compat/arc4random_linux.h 2023-05-14 00:44:53.716886970 +0200
++++ libressl-3.7.1/crypto/compat/arc4random_linux.h 2023-05-14 00:44:32.052886839 +0200
+@@ -27,6 +27,7 @@
+
+ #include <pthread.h>
+ #include <signal.h>
++#include <stdio.h>
+
+ static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER;
+ #define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx)
+@@ -43,6 +44,7 @@
+ static inline void
+ _getentropy_fail(void)
+ {
++ fprintf(stderr, "rebuild psxscl with devurandom patch\n");
+ raise(SIGKILL);
+ }
+