summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-12-04 19:06:37 +0000
committerJeff Johnston <jjohnstn@redhat.com>2000-12-04 19:06:37 +0000
commitdb2d9549447cdb4bc0dd608d9bc2557571fd984d (patch)
tree19bf4f117b18744bf995f8218d9b463633be27d4 /newlib/libc
parent6ba54a154439e9b430c8077c7cbd335e15ab4c49 (diff)
downloadcygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.tar.gz
cygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.tar.bz2
cygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.zip
2000-12-04 Joel Sherrill <joel@OARcorp.com>
* libc/include/machine/time.h: RTEMS systems can configure clock tick rate so use sysconf() to ask.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/machine/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h
index 13857bfde..0caf12655 100644
--- a/newlib/libc/include/machine/time.h
+++ b/newlib/libc/include/machine/time.h
@@ -1,9 +1,13 @@
#ifndef _MACHTIME_H_
#define _MACHTIME_H_
+#if defined(__rtems__)
+#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
+#else /* !__rtems__ */
#if defined(__arm__) || defined(__thumb__)
#define _CLOCKS_PER_SEC_ 100
#endif
+#endif /* !__rtems__ */
#endif /* _MACHTIME_H_ */