Use __sysconf to for CLK_TCK.

This commit is contained in:
Ulrich Drepper 2000-11-01 08:07:45 +00:00
parent abde23bdcf
commit 374305ef42
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@
# 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. */
# define CLK_TCK 1024
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif
# ifdef __USE_POSIX199309