mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +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:
parent
13e9899014
commit
0056d9f176
4
configure
vendored
4
configure
vendored
@ -2301,7 +2301,7 @@ SYSTEM_FEATURES="
|
|||||||
SYSTEM_FUNCS="
|
SYSTEM_FUNCS="
|
||||||
access
|
access
|
||||||
aligned_malloc
|
aligned_malloc
|
||||||
arc4random
|
arc4random_buf
|
||||||
clock_gettime
|
clock_gettime
|
||||||
closesocket
|
closesocket
|
||||||
CommandLineToArgvW
|
CommandLineToArgvW
|
||||||
@ -6381,7 +6381,7 @@ check_func ${malloc_prefix}memalign && enable memalign
|
|||||||
check_func ${malloc_prefix}posix_memalign && enable posix_memalign
|
check_func ${malloc_prefix}posix_memalign && enable posix_memalign
|
||||||
|
|
||||||
check_func access
|
check_func access
|
||||||
check_func_headers stdlib.h arc4random
|
check_func_headers stdlib.h arc4random_buf
|
||||||
check_lib clock_gettime time.h clock_gettime || check_lib clock_gettime time.h clock_gettime -lrt
|
check_lib clock_gettime time.h clock_gettime || check_lib clock_gettime time.h clock_gettime -lrt
|
||||||
check_func fcntl
|
check_func fcntl
|
||||||
check_func fork
|
check_func fork
|
||||||
|
@ -142,7 +142,7 @@ int av_random_bytes(uint8_t* buf, size_t len)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ARC4RANDOM
|
#if HAVE_ARC4RANDOM_BUF
|
||||||
arc4random_buf(buf, len);
|
arc4random_buf(buf, len);
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user