From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz2sY-0007j6-Sb for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz2sV-0000l9-QS for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:39:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44016) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bz2sV-0000ku-Kk for Qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:38:59 -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> <22a10671-42f4-bc69-1bce-84979df60db2@redhat.com> <6E53586E-1AD6-4EA9-AAA3-0338349E46F4@livius.net> From: Paolo Bonzini Message-ID: <7ad3267b-c526-b7ce-b337-d2bb2567dd06@redhat.com> Date: Tue, 25 Oct 2016 16:38:47 +0200 MIME-Version: 1.0 In-Reply-To: <6E53586E-1AD6-4EA9-AAA3-0338349E46F4@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: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