aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c')
-rw-r--r--devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c b/devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c
new file mode 100644
index 000000000000..178c8c120424
--- /dev/null
+++ b/devel/electron37/files/patch-third__party_ffmpeg_libavutil_random__seed.c
@@ -0,0 +1,14 @@
+--- third_party/ffmpeg/libavutil/random_seed.c.orig 2023-10-19 19:59:55 UTC
++++ third_party/ffmpeg/libavutil/random_seed.c
+@@ -35,6 +35,11 @@
+ #elif CONFIG_OPENSSL
+ #include <openssl/rand.h>
+ #endif
++#if HAVE_ARC4RANDOM_BUF
++#undef __BSD_VISIBLE
++#define __BSD_VISIBLE 1
++#include <stdlib.h>
++#endif
+ #include <fcntl.h>
+ #include <math.h>
+ #include <time.h>