From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz2bb-0006O4-Ht for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:21:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz2bY-0002Ao-Dm for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:21:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32776) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bz2bY-0002A8-8X for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:21:28 -0400 References: <1EF56314-1CA2-4C7B-81FB-7B8F3AEF47B8@livius.net> <7E519923-A7CF-4E43-A67D-D614FF161F1E@livius.net> <71a7fb29-89ce-58cc-3ae7-77ab793dbd35@redhat.com> <704CB7E1-45BE-4386-9029-9BD70A30F7E8@livius.net> From: Paolo Bonzini Message-ID: <22a10671-42f4-bc69-1bce-84979df60db2@redhat.com> Date: Tue, 25 Oct 2016 16:21:19 +0200 MIME-Version: 1.0 In-Reply-To: <704CB7E1-45BE-4386-9029-9BD70A30F7E8@livius.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] macOS 10.12 Sierra, Xcode 8 & clock_gettime() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: qemu-devel On 25/10/2016 16:12, Liviu Ionescu wrote: > >> On 25 Oct 2016, at 16:48, Paolo Bonzini >> 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