SIGN IN SIGN UP

[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)

gh-101857: Allow xattr detection on musl libc (GH-101858)

Previously, we checked exclusively for `__GLIBC__` (AND'd with some other
conditions). Checking for `__linux__` instead should be fine.

This fixes using e.g. `os.listxattr()` on systems using musl libc.

Bug: https://bugs.gentoo.org/894130

(cherry picked from commit 8be8101bca34b60481ec3d7ecaea4a3379fb7dbb)

Co-authored-by: Sam James <sam@gentoo.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
M
Miss Islington (bot) committed
2e457bc202179445cbf7b3a2a96c8450f1cda72f
Parent: d45c1df
Committed by GitHub <noreply@github.com> on 5/21/2023, 12:17:27 AM