Skip to content

Commit

Permalink
Auto merge of #2986 - dtolnay-contrib:ficlone, r=JohnTitor
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Nov 1, 2022
2 parents a2b0b4f + 9857684 commit 301790e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libc-test/semver/linux-aarch64.txt
Expand Up @@ -38,6 +38,8 @@ BPF_W
BPF_X
BPF_XOR
CIBAUD
FICLONE
FICLONERANGE
MADV_SOFT_OFFLINE
MAP_SYNC
SIGSTKFLT
Expand Down
4 changes: 3 additions & 1 deletion src/unix/linux_like/linux/arch/generic/mod.rs
Expand Up @@ -106,7 +106,9 @@ cfg_if! {
}

cfg_if! {
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
if #[cfg(any(target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64"))] {
pub const FICLONE: ::c_ulong = 0x40049409;
pub const FICLONERANGE: ::c_ulong = 0x4020940D;
}
Expand Down

0 comments on commit 301790e

Please sign in to comment.