Merge: macOS: update realtime lib for Sierra
authorJean Privat <jean@pryen.org>
Mon, 6 Feb 2017 13:39:19 +0000 (08:39 -0500)
committerJean Privat <jean@pryen.org>
Mon, 6 Feb 2017 13:39:19 +0000 (08:39 -0500)
commit829d9bc1a8b9a92c7d6656bde48d608933a52f62
treed2de757e9b8e1f3439302fedb64d7f48f47da443
parent343b877d9b5dbac0b3848fa4bdf2047f70337f31
parent45e0605e36207ad0d6343765a65748159d5008be
Merge: macOS: update realtime lib for Sierra

The latest version of macOS, Sierra, defines the functions `clock_gettime` and `clock_getres` which were previously missing. This PR adds support for Sierra while preserving compatibility with El Capitan using a simple heuristic to either use the system provided functions or define them locally.

Reported-by: Marie-Pier Lessard @mplessard

Pull-Request: #2358
Reviewed-by: Jean-Philippe Caissy <jpcaissy@piji.ca>