diff --git a/examples/streamer/helpers.cpp b/examples/streamer/helpers.cpp index 36c76113c..7be76571e 100644 --- a/examples/streamer/helpers.cpp +++ b/examples/streamer/helpers.cpp @@ -38,7 +38,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) { x.LowPart = filetime.dwLowDateTime; x.HighPart = filetime.dwHighDateTime; usec = x.QuadPart / 10 - epoch_offset_us; - tv->tv_sec = time_t(usec / 1000000ULL); + tv->tv_sec = long(usec / 1000000ULL); tv->tv_usec = long(usec % 1000000ULL); } if (tz) {