diff --git a/configure b/configure index a5ad34c227..c073f30b11 100755 --- a/configure +++ b/configure @@ -4046,7 +4046,7 @@ check_func mkstemp check_func mmap check_func mprotect # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that -check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; } +check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt; } check_func sched_getaffinity check_func setrlimit check_func strerror_r