diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2024-10-16 10:02:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-10-26 19:45:12 +0200 |
commit | bb7154fb800eb410fb7cc4c353975787353f2246 (patch) | |
tree | d9a592b9102924cf4270807cc6d69c679b5c25b7 | |
parent | 1c093d8bc4b74bd7392f1520c2135d8ba40a2735 (diff) | |
download | guile-bb7154fb800eb410fb7cc4c353975787353f2246.tar.gz |
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>
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | libguile/filesys.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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) diff --git a/libguile/filesys.c b/libguile/filesys.c index 6896e00ea..b70fbb1ce 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -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); |