Skip to content

Commit 1d10516

Browse files
committed
linux_like: Add missing constants for loongarch64
1 parent 0b758af commit 1d10516

File tree

1 file changed

+4
-2
lines changed
  • src/unix/linux_like/linux/arch/generic

1 file changed

+4
-2
lines changed

src/unix/linux_like/linux/arch/generic/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ cfg_if! {
9494
// But they may still not have those _OLD ones.
9595
if #[cfg(all(any(target_arch = "x86",
9696
target_arch = "x86_64",
97-
target_arch = "aarch64"),
97+
target_arch = "aarch64",
98+
target_arch = "loongarch64"),
9899
not(any(target_env = "musl", target_env = "ohos"))))] {
99100
pub const SO_TIMESTAMP_NEW: ::c_int = 63;
100101
pub const SO_TIMESTAMPNS_NEW: ::c_int = 64;
@@ -113,7 +114,8 @@ cfg_if! {
113114
target_arch = "arm",
114115
target_arch = "aarch64",
115116
target_arch = "riscv64",
116-
target_arch = "s390x"))] {
117+
target_arch = "s390x",
118+
target_arch = "loongarch64"))] {
117119
pub const FICLONE: ::c_ulong = 0x40049409;
118120
pub const FICLONERANGE: ::c_ulong = 0x4020940D;
119121
}

0 commit comments

Comments
 (0)