History

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.

Martin Storsjö committed 12 years ago

Commit 72199e11 parent 428b0571 file · +1 −1Browse files

Unified · Split

configure+1−1
@@ -4046,7 +4046,7 @@ check_func mkstemp · 4045 unmodified lines
4046check_func mmap4046check_func mmap
4047check_func mprotect4047check_func mprotect
4048# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that4048# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
4049check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }4049check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt; }
4050check_func sched_getaffinity4050check_func sched_getaffinity
4051check_func setrlimit4051check_func setrlimit
4052check_func strerror_r4052check_func strerror_r

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t