about summary refs log tree commit diff
path: root/src/libstd/os/linux/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/os/linux/raw.rs')
-rw-r--r--src/libstd/os/linux/raw.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstd/os/linux/raw.rs b/src/libstd/os/linux/raw.rs
index d9b2236047b..0caec97bb7b 100644
--- a/src/libstd/os/linux/raw.rs
+++ b/src/libstd/os/linux/raw.rs
@@ -230,7 +230,12 @@ mod arch {
     }
 }
 
-#[cfg(any(target_arch = "mips64", target_arch = "s390x", target_arch = "sparc64"))]
+#[cfg(any(
+    target_arch = "mips64",
+    target_arch = "s390x",
+    target_arch = "sparc64",
+    target_arch = "riscv64"
+))]
 mod arch {
     pub use libc::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t};
 }