ostreedev / ostree-rs-ext

Rust library with higher level APIs on top of the core ostree API
Apache License 2.0
74 stars 24 forks source link

lib: fix building with musl libc #658

Closed JustSoup312 closed 2 weeks ago

JustSoup312 commented 2 weeks ago

No major changes, just defines a const that is unavailable from the libc crate under musl.

libc does not provide STATX_ATTR_MOUNT_ROOT for the musl target as the integration for it has been slow at best. Various dependent projects have included this const manually until the libc crate itself fixes the issues with musl support.

This shouldn't change compilation on glibc-based distros as conditional-compilation is invoked.