aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c')
-rw-r--r--www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c b/www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c
new file mode 100644
index 000000000000..c4de5ec1608e
--- /dev/null
+++ b/www/chromium/files/patch-third__party_ffmpeg_libavutil_random__seed.c
@@ -0,0 +1,14 @@
+--- third_party/ffmpeg/libavutil/random_seed.c.orig 2022-02-07 13:39:41 UTC
++++ third_party/ffmpeg/libavutil/random_seed.c
+@@ -30,6 +30,11 @@
+ #include <windows.h>
+ #include <bcrypt.h>
+ #endif
++#if HAVE_ARC4RANDOM
++#undef __BSD_VISIBLE
++#define __BSD_VISIBLE 1
++#include <stdlib.h>
++#endif
+ #include <fcntl.h>
+ #include <math.h>
+ #include <time.h>