qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Liviu Ionescu <ilg@livius.net>
Cc: qemu-devel <Qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] macOS 10.12 Sierra, Xcode 8 & clock_gettime()
Date: Tue, 25 Oct 2016 16:21:19 +0200	[thread overview]
Message-ID: <22a10671-42f4-bc69-1bce-84979df60db2@redhat.com> (raw)
In-Reply-To: <704CB7E1-45BE-4386-9029-9BD70A30F7E8@livius.net>



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

  reply	other threads:[~2016-10-25 14:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25  9:43 [Qemu-devel] macOS 10.12 Sierra, Xcode 8 & clock_gettime() Liviu Ionescu
2016-10-25 10:02 ` Peter Maydell
2016-10-25 10:34   ` Liviu Ionescu
2016-10-25 13:40   ` Liviu Ionescu
2016-10-25 11:40 ` Paolo Bonzini
2016-10-25 13:36   ` Liviu Ionescu
2016-10-25 13:48     ` Paolo Bonzini
2016-10-25 14:12       ` Liviu Ionescu
2016-10-25 14:21         ` Paolo Bonzini [this message]
2016-10-25 14:37           ` Liviu Ionescu
2016-10-25 14:38             ` Paolo Bonzini
     [not found] <mailman.12713.1477406219.22738.qemu-devel@nongnu.org>
2016-10-26 14:32 ` G 3
2016-10-26 15:15   ` Liviu Ionescu
2016-10-26 15:32     ` G 3
2016-10-26 15:39       ` Liviu Ionescu
2016-10-26 16:03         ` G 3

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22a10671-42f4-bc69-1bce-84979df60db2@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=Qemu-devel@nongnu.org \
    --cc=ilg@livius.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).