Repository navigation
Commit 74c91a6
authored
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`](https://github.com/astral-sh/python-build-standalone/blob/0c5e581b54a4736cdbbe68bdd6d7e571a1dca11e/cpython-unix/patch-posixsubprocess-musl-getdents64.patch).
1 parent f3c27a4 commit 74c91a6
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
| |||
0 commit comments