diff --git a/configure b/configure index 8f0b915577..b1814db238 100755 --- a/configure +++ b/configure @@ -4655,7 +4655,7 @@ check_func ${malloc_prefix}memalign && enable memalign check_func ${malloc_prefix}posix_memalign && enable posix_memalign check_func access -check_func clock_gettime || { check_func clock_gettime -lrt && add_extralibs -lrt; } +check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt; } check_func fcntl check_func fork check_func gethrtime