diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-03-06 19:35:12 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-03-07 08:32:37 +0100 |
commit | 003124ebf4a05f1347c74104216887ddd2e5aad4 (patch) | |
tree | f294c1c9c3ba94e592464beb8b5092753afbac62 /configure | |
parent | b44bd7ee7f7d834c1e22b5f33674393e5c0267c5 (diff) | |
download | ffmpeg-003124ebf4a05f1347c74104216887ddd2e5aad4.tar.gz |
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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4572,8 +4572,8 @@ check_func ${malloc_prefix}memalign && enable memalign check_func ${malloc_prefix}posix_memalign && enable posix_memalign check_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" && - check_func_headers 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 fork |