Open
Description
Bugzilla Link | 38959 |
Version | unspecified |
OS | MacOS X |
CC | @devnexen |
Extended Description
clock_gettime() was added in macOS 10.12.
https://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
clock_gettime() is used in several instances in the xray runtime library, and CLOCK_REALTIME is used but undefined on 10.11 and earlier, and so the build fails on systems without this function and definition.
A possible replacement function is used in MacPorts for a similar failure in other software:
https://github.com/macports/macports-ports/blob/master/graphics/cogl/files/patch-clock_gettime.diff
Another clock_gettime() replacement function with an MIT license is noted here https://gist.github.com/alfwatt/3588c5aa1f7a1ef7a3bb