Skip to content

audcore: don't include linux/stat.h - #1823

Merged
radioactiveman merged 1 commit into
audacious-media-player:masterfrom
classabbyamp:stat-usage
Jun 6, 2026
Merged

radioactiveman merged 1 commit into
audacious-media-player:masterfrom
classabbyamp:stat-usage

Conversation

@classabbyamp

Copy link
Copy Markdown
Contributor

on glibc, this is redundant (sys/stat.h includes bits/statx.h includes linux/stat.h). on musl, it results in an error that struct statx and struct statx_timestamp are being redefined. sys/stat.h is the proper interface to use when using statx on linux.

tested this by building for x86_64, i686, aarch64, armv7l, and armv6l for both glibc and musl on Void Linux.

on glibc, this is redundant (`sys/stat.h` includes `bits/statx.h`
includes `linux/stat.h`). on musl, it results in an error that `struct
statx` and `struct statx_timestamp` are being redefined. `sys/stat.h` is
the proper interface to use when using `statx` on linux.
@radioactiveman
radioactiveman merged commit 4e3449d into audacious-media-player:master Jun 6, 2026
5 checks passed
@radioactiveman

Copy link
Copy Markdown
Member

Merged, thank you for the patch and for maintaining Audacious on Void Linux. 👍

@radioactiveman radioactiveman added this to the 4.6.1 milestone Jun 6, 2026
@classabbyamp
classabbyamp deleted the stat-usage branch June 6, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants