PATCH: CLK_TCK obsolete
Marcus Meissner
meissner at suse.de
Sun Oct 30 11:29:23 CST 2005
Hi,
Fix build with newer glibc.
Ciao, Marcus
Changelog:
define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there.
Index: dlls/kernel/time.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/time.c,v
retrieving revision 1.55
diff -u -r1.55 time.c
--- dlls/kernel/time.c 17 Oct 2005 09:23:22 -0000 1.55
+++ dlls/kernel/time.c 30 Oct 2005 16:59:15 -0000
@@ -516,6 +516,9 @@
* 2) Time is relative. There is no 'starting date', so there is
* no need for offset correction, like in UnixTimeToFileTime
*/
+#ifndef CLK_TCK
+# define CLK_TCK CLOCKS_PER_SEC
+#endif
static void TIME_ClockTimeToFileTime(clock_t unix_time, LPFILETIME filetime)
{
ULONGLONG secs = RtlEnlargedUnsignedMultiply( unix_time, 10000000 );
More information about the wine-patches
mailing list