aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorPavel Koshevoy <pkoshevoy@gmail.com>2023-07-08 11:48:13 -0600
committerJames Almer <jamrial@gmail.com>2023-07-08 14:51:15 -0300
commit0056d9f1765dc1ef0dcb81c6919de7e75575a889 (patch)
treec1218a7943c6d37ab5c0fdf31069bb3a89591767 /libavutil
parent13e989901468b2e53a7d3a099511aae6987c7b00 (diff)
downloadffmpeg-0056d9f1765dc1ef0dcb81c6919de7e75575a889.tar.gz
avutil: fix build failure on osx 10.4
libavutil/random_seed.c calls arc4random_buf which is not available on OSX 10.4 Tiger, but the configuration script tests for arc4random which is available. Fix the configuration test to match the actual API used. Co-authored-by: James Almer <jamrial@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/random_seed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c
index 2980e565e0..f167b172f2 100644
--- a/libavutil/random_seed.c
+++ b/libavutil/random_seed.c
@@ -142,7 +142,7 @@ int av_random_bytes(uint8_t* buf, size_t len)
}
#endif
-#if HAVE_ARC4RANDOM
+#if HAVE_ARC4RANDOM_BUF
arc4random_buf(buf, len);
return 0;
#endif