Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpUej-0000MJ-53 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:08:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpUei-0000M4-LR for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:08:44 -0400 Received: from [199.232.76.173] (port=50363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpUei-0000Lx-Fs for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:08:44 -0400 Received: from hall.aurel32.net ([88.191.82.174]:33207) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpUei-0005mt-0t for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:08:44 -0400 Received: from volta-wlan.aurel32.net ([2002:52e8:2fb:ffff:21d:e0ff:fe49:1047] helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KpUeg-0003bf-Pi for qemu-devel@nongnu.org; Mon, 13 Oct 2008 23:08:42 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1KpUeb-0006Nb-5u for qemu-devel@nongnu.org; Mon, 13 Oct 2008 23:08:37 +0200 Date: Mon, 13 Oct 2008 23:08:37 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] 1/5: FreeBSD also has clock_gettime Message-ID: <20081013210837.GB18008@volta.aurel32.net> References: <20081001183419.GA70487@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20081001183419.GA70487@saturn.kn-bremen.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Applied, thanks. On Wed, Oct 01, 2008 at 08:34:20PM +0200, Juergen Lock wrote: > Index: qemu/vl.c > @@ -541,7 +541,7 @@ > static void init_get_clock(void) > { > use_rt_clock = 0; > -#if defined(__linux__) > +#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) > { > struct timespec ts; > if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { > @@ -553,7 +553,7 @@ > > static int64_t get_clock(void) > { > -#if defined(__linux__) > +#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) > if (use_rt_clock) { > struct timespec ts; > clock_gettime(CLOCK_MONOTONIC, &ts); > > Signed-off-by: Juergen Lock > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net