Skip to content

Commit e2d745b

Browse files
committed
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
1 parent 3973509 commit e2d745b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/install-musl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set -eux
77

8-
musl_version=1.1.24
8+
musl_version=1.2.5
99
musl="musl-${musl_version}"
1010

1111
# Download, configure, build, and install musl:

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ cfg_if! {
18881888

18891889
// The statx syscall, available on some libcs.
18901890
cfg_if! {
1891-
if #[cfg(any(target_env = "gnu", target_os = "android"))] {
1891+
if #[cfg(any(target_env = "gnu", target_os = "android", target_env = "musl"))] {
18921892
pub const AT_STATX_SYNC_TYPE: ::c_int = 0x6000;
18931893
pub const AT_STATX_SYNC_AS_STAT: ::c_int = 0x0000;
18941894
pub const AT_STATX_FORCE_SYNC: ::c_int = 0x2000;

0 commit comments

Comments
 (0)