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
40464046 check_func mmap
40474047 check_func mprotect
40484048 # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
4049−check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
4049+check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt; }
40504050 check_func sched_getaffinity
40514051 check_func setrlimit
40524052 check_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