summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/machine/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/machine/time.h')
-rw-r--r--newlib/libc/include/machine/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h
index 6f9a35cc5..c75edafa7 100644
--- a/newlib/libc/include/machine/time.h
+++ b/newlib/libc/include/machine/time.h
@@ -1,7 +1,7 @@
#ifndef _MACHTIME_H_
#define _MACHTIME_H_
-#if defined(__rtems__) || defined(__VISIUM__)
+#if defined(__rtems__) || defined(__VISIUM__) || defined(__riscv)
#define _CLOCKS_PER_SEC_ 1000000
#elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
#define _CLOCKS_PER_SEC_ 100