Chromium Code Reviews

Unified Diff: base/third_party/nspr/prtime.cc

Issue 180037: Port some of the base system to FreeBSD. Extracted from... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « base/third_party/nspr/prcpucfg_freebsd.h ('k') | base/time_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/nspr/prtime.cc
===================================================================
--- base/third_party/nspr/prtime.cc (revision 24732)
+++ base/third_party/nspr/prtime.cc (working copy)
@@ -149,7 +149,7 @@
result *= kSecondsToMicroseconds;
result += exploded->tm_usec;
return result;
-#elif defined(OS_LINUX)
+#elif defined(OS_LINUX) || defined(OS_FREEBSD)
struct tm exp_tm = {0};
exp_tm.tm_sec = exploded->tm_sec;
exp_tm.tm_min = exploded->tm_min;
« no previous file with comments | « base/third_party/nspr/prcpucfg_freebsd.h ('k') | base/time_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine