mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
(CLK_TCK): Cast sysconf result to __clock_t.
This commit is contained in:
parent
374305ef42
commit
e569ff55ac
@ -36,8 +36,9 @@
|
||||
# ifndef __STRICT_ANSI__
|
||||
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
|
||||
presents the real value for clock ticks per second for the system. */
|
||||
# include <bits/types.h>
|
||||
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
|
||||
|
||||
# ifdef __USE_POSIX199309
|
||||
|
Loading…
Reference in New Issue
Block a user