qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] macOS 10.12 Sierra, Xcode 8 & clock_gettime()


From: Paolo Bonzini
Subject: Re: [Qemu-devel] macOS 10.12 Sierra, Xcode 8 & clock_gettime()
Date: Tue, 25 Oct 2016 16:21:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0


On 25/10/2016 16:12, Liviu Ionescu wrote:
> 
>> On 25 Oct 2016, at 16:48, Paolo Bonzini <address@hidden>
>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]