Commit 6fa1db1e authored by sampsong's avatar sampsong Committed by Commit bot

AIX/SOLARIS/CYGWIN: Fix build failure due in PosixTimezoneCache

R=littledan@chromium.org, ulan@chromium.org, bjaideep@ca.ibm.com

BUG=

Review-Url: https://codereview.chromium.org/2740353002
Cr-Commit-Position: refs/heads/master@{#43917}
parent 42487a84
......@@ -382,6 +382,7 @@ double OS::TimeCurrentMillis() {
return Time::Now().ToJsTime();
}
#if !V8_OS_AIX && !V8_OS_SOLARIS && !V8_OS_CYGWIN
const char* PosixTimezoneCache::LocalTimezone(double time) {
if (std::isnan(time)) return "";
time_t tv = static_cast<time_t>(std::floor(time / msPerSecond));
......@@ -399,6 +400,7 @@ double PosixTimezoneCache::LocalTimeOffset() {
return static_cast<double>(t->tm_gmtoff * msPerSecond -
(t->tm_isdst > 0 ? 3600 * msPerSecond : 0));
}
#endif
double PosixTimezoneCache::DaylightSavingsOffset(double time) {
if (std::isnan(time)) return std::numeric_limits<double>::quiet_NaN();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment