clock_gettime support on OS X is a nightmare
Darwin did not support
clock_gettime until Sierra, which added it. Unfortunately, the existing
MACOSX_DEPLOYMENT_TARGET environment variable has no effect on its availability, so binary distributions compiled on Sierra will be incompatible with older releases.
We have three options for dealing with this,
clock_gettimesupport in our OS X binary distributions (e.g.
- Produce one binary distribution for Sierra and another for previous releases
- Making it possible to change timer backends at runtime.
At the moment I'm leaning towards (1). (2) is another possibility. (3) seems like a road to madness.