* 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 <timebits.h>.
--- /dev/null
+/* System-dependent timing definitions. Stub version.
+Copyright (C) 1996 Free Software Foundation, Inc.
+This file is part of the GNU C Library.
+
+The GNU C Library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public License as
+published by the Free Software Foundation; either version 2 of the
+License, or (at your option) any later version.
+
+The GNU C Library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with the GNU C Library; see the file COPYING.LIB. If
+not, write to the Free Software Foundation, Inc., 675 Mass Ave,
+Cambridge, MA 02139, USA. */
+
+#ifndef _TIMEBITS_H
+#define _TIMEBITS_H 1
+
+#define CLOCKS_PER_SEC 60
+
+#endif /* timebits.h */
--- /dev/null
+/* System-dependent timing definitions. Linux version.
+Copyright (C) 1996 Free Software Foundation, Inc.
+This file is part of the GNU C Library.
+
+The GNU C Library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public License as
+published by the Free Software Foundation; either version 2 of the
+License, or (at your option) any later version.
+
+The GNU C Library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with the GNU C Library; see the file COPYING.LIB. If
+not, write to the Free Software Foundation, Inc., 675 Mass Ave,
+Cambridge, MA 02139, USA. */
+
+#ifndef _TIMEBITS_H
+#define _TIMEBITS_H 1
+
+#include <asm/param.h>
+#define CLOCKS_PER_SEC HZ /* XXX names not kosher */
+
+#endif /* timebits.h */
#
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.%)
#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. */