mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Fix build failure with GCC 14 and musl on 32-bit systems.
Fixes <https://bugs.gnu.org/73835>. This fixes this error when compiling with GCC 14 and musl libc on 32-bit Alpine Linux: filesys.c: In function 'scm_sendfile': filesys.c:1405:16: error: assignment to 'off_t *' {aka 'long long int *'} from incompatible pointer type 'scm_t_off *' {aka 'long int *'} [-Wincompatible-pointer-types] 1405 | offset_ptr = SCM_UNBNDP (offset) ? NULL : &c_offset; | ^ * libguile/filesys.c (scm_sendfile): Change type of ‘c_offset’. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
1c093d8bc4
commit
bb7154fb80
2 changed files with 3 additions and 1 deletions
2
NEWS
2
NEWS
|
@ -39,6 +39,8 @@ downright unusable (e.g., <https://bugs.gnu.org/72378>), non-conforming
|
|||
(<https://bugs.gnu.org/73167>)
|
||||
** Fix portability issues for macOS
|
||||
(<https://bugs.gnu.org/72547>)
|
||||
** Fix compilation with GCC 14 and musl on 32-bit systems
|
||||
(<https://bugs.gnu.org/73835>)
|
||||
|
||||
|
||||
Changes in 3.0.10 (since 3.0.9)
|
||||
|
|
|
@ -1397,7 +1397,7 @@ SCM_DEFINE (scm_sendfile, "sendfile", 3, 1, 0,
|
|||
|
||||
ssize_t result SCM_UNUSED;
|
||||
size_t c_count, total = 0;
|
||||
scm_t_off c_offset;
|
||||
off_t c_offset;
|
||||
int in_fd, out_fd;
|
||||
|
||||
VALIDATE_FD_OR_PORT (out_fd, out, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue