On 25/10/2016 16:37, Liviu Ionescu wrote: >>> ... If you add the attribute to the test, configure will detect >>> it or not depending on -mmacosx-version-min, at least in theory. > aha. so your suggestion is to extend configure to add > CONFIG_HAVE_CLOCK_GETTIME, add -mmacosx-version-min to be sure > configure does **not** set CONFIG_HAVE_CLOCK_GETTIME, and then patch > the source codes to conditionally refer to clock_gettime(). > > this is definitely a better approach than my workaround, but requires > much more effort. I'll probably wait for such a solution, when > available.
You'll have to wait for a long time, since I don't even have a computer to test it on. Paolo