Skip to content

Accept older musl getdents64 buffer declarations - #20

Closed
zaniebot wants to merge 2 commits into
mainfrom
pbs/musl-getdents64-20261021
Closed

zaniebot wants to merge 2 commits into
mainfrom
pbs/musl-getdents64-20261021

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Older musl headers expose getdents64 as an alias for getdents, whose buffer parameter is struct dirent *. Passing the raw character buffer triggers an incompatible-pointer diagnostic. Pass it through void * to support both that interface and the glibc declaration.

Ports PBS's patch-posixsubprocess-musl-getdents64.patch.

@zaniebot zaniebot changed the title Accept the musl getdents64 buffer type Accept older musl getdents64 buffer declarations Oct 21, 2026
@zaniebot

This comment was marked as resolved.

@zaniebot

Copy link
Copy Markdown
Collaborator Author

Promoted to python#160365

@zaniebot zaniebot closed this Oct 22, 2026
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.

1 participant