Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl6ok-0008Ey-85 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:52:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl6oi-0008D9-1y for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:52:57 -0400 Received: from [199.232.76.173] (port=56851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl6oh-0008Cx-Se for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:52:55 -0400 Received: from gwyn.kn-bremen.de ([212.63.36.242]:37327) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kl6oh-0007Jo-Jw for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:52:55 -0400 Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m91IYMlD070510 for ; Wed, 1 Oct 2008 20:34:22 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m91IYLct070509 for qemu-devel@nongnu.org; Wed, 1 Oct 2008 20:34:21 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Wed, 1 Oct 2008 20:34:20 +0200 Message-ID: <20081001183419.GA70487@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] 1/5: FreeBSD also has clock_gettime 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 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