On 25/10/2016 16:12, Liviu Ionescu wrote: > >> On 25 Oct 2016, at 16:48, Paolo Bonzini <pbonz...@redhat.com> >> wrote: >> >> Perhaps you can add a configure test for clock_gettime, and define >> a symbol CONFIG_HAVE_CLOCK_GETTIME if clock_gettime exists. > > I thought of this, but if I run the build on 10.12, configure will > identify `clock_gettime()` as present, refer to it, and when the > executable is started on 10.11, it'll fail. :-(
If you add the attribute to the test, configure will detect it or not depending on -mmacosx-version-min, at least in theory. Paolo