From 032a41add676ebdf6227b0be8663341346f300fc Mon Sep 17 00:00:00 2001 From: olsner Date: Sat, 18 Jul 2009 01:55:26 +0000 Subject: [PATCH] Fix timer configuration: clock_gettime uses timespec, gettimeofday uses timeval. This was SVN commit r7014. --- source/lib/timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/timer.cpp b/source/lib/timer.cpp index 59653edfcf..e6367ae6c5 100644 --- a/source/lib/timer.cpp +++ b/source/lib/timer.cpp @@ -52,9 +52,9 @@ // timer values than their us / ns interface, via double [seconds]. // they're also not guaranteed to be monotonic. -#if HAVE_GETTIMEOFDAY +#if HAVE_CLOCK_GETTIME static struct timespec start; -#elif HAVE_CLOCK_GETTIME +#elif HAVE_GETTIMEOFDAY static struct timeval start; #endif