From f1fb0026829159cde8437b84447161f1e7ebda9d Mon Sep 17 00:00:00 2001 From: Ted Steiner Date: Tue, 4 Jun 2019 12:45:21 -0400 Subject: [PATCH] Merge pull request #14678 from tedsteiner:qnx Fix build issue on QNX platform (#14678) * QNX compatibility * core: unify gettimeofday() usage --- modules/core/src/system.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index ceb26d7a0b..2c0038b80e 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -758,8 +758,7 @@ int64 getTickCount(void) return (int64)mach_absolute_time(); #else struct timeval tv; - struct timezone tz; - gettimeofday( &tv, &tz ); + gettimeofday(&tv, NULL); return (int64)tv.tv_sec*1000000 + tv.tv_usec; #endif }