Commit f1fb0026 authored by Ted Steiner's avatar Ted Steiner Committed by Alexander Alekhin

Merge pull request #14678 from tedsteiner:qnx

Fix build issue on QNX platform (#14678)

* QNX compatibility

* core: unify gettimeofday() usage
parent d5a0d678
...@@ -758,8 +758,7 @@ int64 getTickCount(void) ...@@ -758,8 +758,7 @@ int64 getTickCount(void)
return (int64)mach_absolute_time(); return (int64)mach_absolute_time();
#else #else
struct timeval tv; struct timeval tv;
struct timezone tz; gettimeofday(&tv, NULL);
gettimeofday( &tv, &tz );
return (int64)tv.tv_sec*1000000 + tv.tv_usec; return (int64)tv.tv_sec*1000000 + tv.tv_usec;
#endif #endif
} }
......
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