Skip to content

Commit 6b4ceca

Browse files
committed
gh-160359: Accept older musl getdents64 buffer declarations
1 parent 69d0f96 commit 6b4ceca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/_posixsubprocess.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ _close_open_fds_safe(int start_fd, int *fds_to_keep, Py_ssize_t fds_to_keep_len)
436436
Py_ssize_t bytes;
437437
while (1) {
438438
#ifdef HAVE_GETDENTS64
439-
bytes = getdents64(fd_dir_fd, buffer, sizeof(buffer));
439+
bytes = getdents64(fd_dir_fd, (void *)buffer, sizeof(buffer));
440440
#else
441441
bytes = syscall(SYS_getdents64, fd_dir_fd,
442442
(struct py_dirent64 *)buffer, sizeof(buffer));

0 commit comments

Comments
 (0)