You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
build: Fix logic of clock_gettime() check
We should only check for clock_gettime() if _POSIX_MONOTONIC_CLOCK is available and do a full link check for clock_gettime() in all cases.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -4572,8 +4572,8 @@ 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_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" &&
|
check_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" &&
|
||||||
check_func_headers time.h clock_gettime ||
|
{ 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 -lrt; }
|
||||||
|
|
||||||
check_func fcntl
|
check_func fcntl
|
||||||
check_func fork
|
check_func fork
|
||||||
|
Reference in New Issue
Block a user