Commit ec903058 authored by Diego Biurrun's avatar Diego Biurrun

configure: Simplify clock_gettime() test

parent 3aa9d37d
......@@ -4472,7 +4472,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_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
check_func_headers time.h clock_gettime ||
{ check_lib2 time.h clock_gettime -lrt && LIBRT="-lrt"; }
check_func fcntl
check_func fork
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment