tests: check for the presence of clock_gettime()
authorJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 1 Oct 2016 15:32:13 +0000 (17:32 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 1 Oct 2016 19:19:15 +0000 (21:19 +0200)
commit06a3629bec77915df0ed6b4b64ce8846ccdfcc1e
tree1e813f1bb77c823af5f8056c00c6cf0a97417869
parent00b0501424fd7994decc3d05571ac7107eb62de5
tests: check for the presence of clock_gettime()

macOS Sierra provides clock_gettime().
Instead of testing for the Mach kernel to re-implement clock_gettime(),
let first check that clock_gettime() is not already declared. Older OSX
versions will have the Mach-only fallback.

@fix
src/tests/eina/eina_test_lock.c