From 1d1051684bb332a7905bd94b0c860b8b1924dedf Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Sat, 6 May 2023 10:11:06 +0800 Subject: [PATCH] linux_like: Add missing constants for loongarch64 --- src/unix/linux_like/linux/arch/generic/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unix/linux_like/linux/arch/generic/mod.rs b/src/unix/linux_like/linux/arch/generic/mod.rs index 8acf5b5520bf1..7bc94c6f05bea 100644 --- a/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/src/unix/linux_like/linux/arch/generic/mod.rs @@ -94,7 +94,8 @@ cfg_if! { // But they may still not have those _OLD ones. if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64", - target_arch = "aarch64"), + target_arch = "aarch64", + target_arch = "loongarch64"), not(any(target_env = "musl", target_env = "ohos"))))] { pub const SO_TIMESTAMP_NEW: ::c_int = 63; pub const SO_TIMESTAMPNS_NEW: ::c_int = 64; @@ -113,7 +114,8 @@ cfg_if! { target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64", - target_arch = "s390x"))] { + target_arch = "s390x", + target_arch = "loongarch64"))] { pub const FICLONE: ::c_ulong = 0x40049409; pub const FICLONERANGE: ::c_ulong = 0x4020940D; }