diff options
Diffstat (limited to 'base/time_posix.cc')
-rw-r--r-- | base/time_posix.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/time_posix.cc b/base/time_posix.cc index 66f41d3..c64f8e7 100644 --- a/base/time_posix.cc +++ b/base/time_posix.cc @@ -143,9 +143,10 @@ void Time::Explode(bool is_local, Exploded* exploded) const { } // TimeTicks ------------------------------------------------------------------ - -#if defined(OS_POSIX) && \ - defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0 +// FreeBSD 6 has CLOCK_MONOLITHIC but defines _POSIX_MONOTONIC_CLOCK to -1. +#if (defined(OS_POSIX) && \ + defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0) || \ + defined(OS_FREEBSD) // static TimeTicks TimeTicks::Now() { |