Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 538659d9d005056124d3009fc97d1bed7167fe72..6e9a8a4459d113da15d34e0f1eab5f1696c15467 100644 |
--- a/base/time.h |
+++ b/base/time.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -26,6 +26,11 @@ |
#include "base/basictypes.h" |
+#if defined(OS_POSIX) |
+// For struct timeval. |
+#include <sys/time.h> |
+#endif |
+ |
#if defined(OS_WIN) |
// For FILETIME in FromFileTime, until it moves to a new converter class. |
// See TODO(iyengar) below. |
@@ -241,6 +246,9 @@ class Time { |
static Time FromDoubleT(double dt); |
double ToDoubleT() const; |
+#if defined(OS_POSIX) |
+ struct timeval ToTimeVal() const; |
+#endif |
#if defined(OS_WIN) |
static Time FromFileTime(FILETIME ft); |