(CLK_TCK): Cast sysconf result to __clock_t.

This commit is contained in:
Ulrich Drepper 2000-11-01 20:59:56 +00:00
parent 374305ef42
commit e569ff55ac

View File

@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__ # ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */ presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int); extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */ # define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif # endif
# ifdef __USE_POSIX199309 # ifdef __USE_POSIX199309