Skip to content

Conversation

@heiher
Copy link
Contributor

@heiher heiher commented Jan 27, 2026

Description

Some musl targets use out-of-line timespec fields in struct stat. This property is independent of the musl_v1_2_3 switch.

Add a new musl_stat_timespec cfg and use it to control the presence of inline time fields in musl struct stat definitions, avoiding incorrect API assumptions based on musl version alone.

Fixes #4939

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

Some musl targets use out-of-line timespec fields in struct stat.
This property is independent of the `musl_v1_2_3` switch.

Add a new `musl_stat_timespec` cfg and use it to control the presence
of inline time fields in musl struct stat definitions, avoiding
incorrect API assumptions based on musl version alone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loongarch64-linux-musl broken after libc v0.2.179

2 participants