summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-08-11 15:02:28 +0300
committerMartin Storsjö <martin@martin.st>2014-08-13 14:39:01 +0300
commit72199e1041b4052544e181ad90b431ca6704da12 (patch)
treea62fa43336ee53e1765fb39ea5ce82bdc6b30ad4 /configure
parent428b0578c64241fc677fed7083cc8fe65e10f32e (diff)
configure: Check for nanosleep in headers as well, not only in libs
On mingw64 with c++11 support, the link libraries do contain a nanosleep function, while it isn't exposed via the headers. Using check_func_headers instead of a plain check_func fixes this misdetection. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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