Commit 100026be authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'ec903058'

* commit 'ec903058':
  configure: Simplify clock_gettime() test

nanosleep check also updated.
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 38343651 ec903058
......@@ -5580,7 +5580,8 @@ check_func ${malloc_prefix}posix_memalign && enable posix_memalign
check_func access
check_func_headers stdlib.h arc4random
check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
check_func_headers time.h clock_gettime ||
{ check_lib2 time.h clock_gettime -lrt && LIBRT="-lrt"; }
check_func fcntl
check_func fork
check_func gethrtime
......@@ -5593,7 +5594,8 @@ check_func mkstemp
check_func mmap
check_func mprotect
# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
check_func_headers time.h nanosleep ||
{ check_lib2 time.h nanosleep -lrt && LIBRT="-lrt"; }
check_func sched_getaffinity
check_func setrlimit
check_struct "sys/stat.h" "struct stat" st_mtim.tv_nsec -D_BSD_SOURCE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment