From 48e84139135fe3399457d57fc2f5cbb78667fcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Wed, 16 Oct 2024 09:05:59 +0200 Subject: [PATCH] Enable statx on musl-libc Version 1.2.5 of musl-libc added support for the statx system call[1]. [1]: https://musl.libc.org/releases.html --- ci/install-musl.sh | 2 +- src/unix/linux_like/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/install-musl.sh b/ci/install-musl.sh index 7ea50916c4caf..ded17ae611642 100644 --- a/ci/install-musl.sh +++ b/ci/install-musl.sh @@ -5,7 +5,7 @@ set -ex -MUSL_VERSION=1.1.24 +MUSL_VERSION=1.2.5 MUSL="musl-${MUSL_VERSION}" # Download, configure, build, and install musl: diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 377fadfa9f511..6aec88c2677e9 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1888,7 +1888,7 @@ cfg_if! { // The statx syscall, available on some libcs. cfg_if! { - if #[cfg(any(target_env = "gnu", target_os = "android"))] { + if #[cfg(any(target_env = "gnu", target_os = "android", target_env = "musl"))] { mod linux_statx; pub use self::linux_statx::*; }