From: Ben Craig Date: Wed, 28 Aug 2013 20:08:23 +0000 (-0500) Subject: THRIFT-2023: gettimeofday implementation in Windows errors when no time X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=9df014012e6fb2f831a49b6f7431380566483048;p=common%2Fthrift.git THRIFT-2023: gettimeofday implementation in Windows errors when no time zone is passed in Client: cpp Patch: Ben Craig --- diff --git a/lib/cpp/src/thrift/windows/GetTimeOfDay.cpp b/lib/cpp/src/thrift/windows/GetTimeOfDay.cpp index 19063024..c5667e42 100644 --- a/lib/cpp/src/thrift/windows/GetTimeOfDay.cpp +++ b/lib/cpp/src/thrift/windows/GetTimeOfDay.cpp @@ -88,7 +88,7 @@ int thrift_gettimeofday(struct timeval * tv, struct timezone * tz) } } - return -1; + return 0; } int thrift_sleep(unsigned int seconds)