diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-07-27 13:53:43 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-07-27 13:53:59 (GMT) |
commit | 85a410db4ded672566cb621ab1e13da691d26891 (patch) | |
tree | 20db2bc3a86e2881ef9b9b06962e55eb71a3e0e2 /src | |
parent | 38d668cb3026e4e3e253c8b0fbd075c52e251e90 (diff) | |
download | Qt-85a410db4ded672566cb621ab1e13da691d26891.zip Qt-85a410db4ded672566cb621ab1e13da691d26891.tar.gz Qt-85a410db4ded672566cb621ab1e13da691d26891.tar.bz2 |
Compile on Mac OS X
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcore_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp index b321518..28c1d9c 100644 --- a/src/corelib/kernel/qcore_unix.cpp +++ b/src/corelib/kernel/qcore_unix.cpp @@ -91,7 +91,7 @@ timeval qt_gettime() uint64_t cpu_time = mach_absolute_time(); uint64_t nsecs = cpu_time * (info.numer / info.denom); tv.tv_sec = nsecs / 1000000000ull; - tv.tv_usec = (nsecs / 1000) - (t.tv_sec * 1000000); + tv.tv_usec = (nsecs / 1000) - (tv.tv_sec * 1000000); return tv; #elif (_POSIX_MONOTONIC_CLOCK-0 > 0) timespec ts; |