summaryrefslogtreecommitdiff
path: root/configure
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 /configure
parent13e989901468b2e53a7d3a099511aae6987c7b00 (diff)
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 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index d6e78297fe..0ab0761011 100755
--- a/configure
+++ b/configure
@@ -2301,7 +2301,7 @@ SYSTEM_FEATURES="
SYSTEM_FUNCS="
access
aligned_malloc
- arc4random
+ arc4random_buf
clock_gettime
closesocket
CommandLineToArgvW
@@ -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