about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/Makefile2
-rw-r--r--time/time.h9
2 files changed, 7 insertions, 4 deletions
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 <timebits.h>
+
+/* 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 /* <time.h> included.  */