From f8cac037eea3e928b0d5e0c17990b6996159eec8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 10 May 1996 22:55:26 +0000 Subject: Fri May 10 18:36:14 1996 Roland McGrath * FAQ: New file contributed by drepper. * time/Makefile (headers): Add timebits.h. * sysdeps/unix/sysv/linux/timebits.h: New file. * sysdeps/stub/timebits.h: New file. * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC. (CLOCKS_PER_SEC): Remove this macro. Instead #include . --- time/Makefile | 2 +- time/time.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'time') diff --git a/time/Makefile b/time/Makefile index 5741853db4..8feb377dd4 100644 --- a/time/Makefile +++ b/time/Makefile @@ -21,7 +21,7 @@ # subdir := time -headers := time.h sys/time.h sys/timeb.h +headers := time.h sys/time.h sys/timeb.h timebits.h distribute := tzfile.h private.h scheck.c ialloc.c yearistype extra-objs = scheck.o ialloc.o zonenames $(tzfiles:%=z.%) diff --git a/time/time.h b/time/time.h index 5f9591419e..fda7f20387 100644 --- a/time/time.h +++ b/time/time.h @@ -40,11 +40,14 @@ __BEGIN_DECLS #ifdef _TIME_H -/* Processor clock ticks per second. */ -#define CLOCKS_PER_SEC 1 /* ??? */ +/* This defines CLOCKS_PER_SEC, which is the number of processor clock + ticks per second. */ +#include + +/* This is the obsolete POSIX.1-1988 name for the same constant. */ #ifdef __USE_POSIX -#define CLK_TCK 60 /* ??? */ +#define CLK_TCK CLOCKS_PER_SEC #endif #endif /* included. */ -- cgit v1.2.3