1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-07-16 22:42:38 +02:00

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>
This commit is contained in:
Pavel Koshevoy
2023-07-08 11:48:13 -06:00
committed by James Almer
parent 13e9899014
commit 0056d9f176
2 changed files with 3 additions and 3 deletions

View File

@ -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