From 9df014012e6fb2f831a49b6f7431380566483048 Mon Sep 17 00:00:00 2001 From: Ben Craig Date: Wed, 28 Aug 2013 15:08:23 -0500 Subject: [PATCH] THRIFT-2023: gettimeofday implementation in Windows errors when no time zone is passed in Client: cpp Patch: Ben Craig --- lib/cpp/src/thrift/windows/GetTimeOfDay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.17.1