Message ID | 20230708174813.8403-1-pkoshevoy@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avutil: fix build failure on osx 10.4 | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On 7/8/2023 2:48 PM, Pavel Koshevoy wrote: > 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. > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index d6e78297fe..c18a696b8a 100755 > --- a/configure > +++ b/configure > @@ -6381,7 +6381,7 @@ check_func ${malloc_prefix}memalign && enable memalign > check_func ${malloc_prefix}posix_memalign && enable posix_memalign > > 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_func fcntl > check_func fork Applied with some changes. Thanks.
diff --git a/configure b/configure index d6e78297fe..c18a696b8a 100755 --- a/configure +++ b/configure @@ -6381,7 +6381,7 @@ check_func ${malloc_prefix}memalign && enable memalign check_func ${malloc_prefix}posix_memalign && enable posix_memalign 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_func fcntl check_func fork