aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-third__party_ffmpeg_libavutil_random__seed.c
blob: 178c8c1204241b691f1955450ec4f29215a07936 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>