Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-12-04 22:06:37 +0300
committerJeff Johnston <jjohnstn@redhat.com>2000-12-04 22:06:37 +0300
commitdb2d9549447cdb4bc0dd608d9bc2557571fd984d (patch)
tree19bf4f117b18744bf995f8218d9b463633be27d4 /newlib/libc/include
parent6ba54a154439e9b430c8077c7cbd335e15ab4c49 (diff)
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/include')
-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_ */