[PATCH] TIME_ClockTimeToFileTime calculation incorrect on FC5
Stephen R. Veit
sveit at tradeharbor.com
Fri Oct 27 09:05:43 CDT 2006
The TIME_ClockTimeToFileTime function incorrectly divides the clock
1000000 on Fedora Core 5. The calculation is correct on Fedora Core 3. The
problem is that the code uses the obsolete CLK_TCK macro, which doesn't exist on
FC5. On FC3 the is set to 100. The code defines CLK_TCK as CLOCKS_PER_SEC
(defined as 1000000) on FC5. According to the times(2):
The number of clock ticks per second can be obtained using
In POSIX-1996 the symbol CLK_TCK (defined in <time.h>) is mentioned as
obsolescent. It is obsolete now.
The attached patch fixes this problem.
This patch was created against the 0.9.21 version of wine.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 978 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061027/f15fa644/wine-time.bin
More information about the wine-patches