Repository navigation
gh-160359: Accept older musl getdents64 buffer declarations - #160365
Conversation
gpshead
left a comment
There was a problem hiding this comment.
easy for this to regress without the comment or a CI check that fails otherwise. but this code doesn't really change.
|
I'll add a comment, seems reasonable |
|
Feedback on the comment welcome, as I'm not a C developer :) |
comment looks good to me. there was a CI failure (windows free threading). I retried it, I don't see how this change could impact windows, probably a flake. |
|
Sorry, @zanieb and @itamaro, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
Sorry, @zanieb and @itamaro, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
This does not need backporting to 3.14 or 3.15: both branches call |
Older musl headers expose
getdents64as an alias forgetdents, whose buffer parameter isstruct dirent *. Passing the raw character buffer triggers an incompatible-pointer diagnostic. Pass it throughvoid *to support both that interface and the glibc declaration.Ports PBS's
patch-posixsubprocess-musl-getdents64.patch.Closes #160359.
_posixsubprocesspasses an incompatible buffer to older muslgetdents64#160359