summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2024-10-16 10:02:01 +0200
committerLudovic Courtès <ludo@gnu.org>2024-10-26 19:45:12 +0200
commitbb7154fb800eb410fb7cc4c353975787353f2246 (patch)
treed9a592b9102924cf4270807cc6d69c679b5c25b7
parent1c093d8bc4b74bd7392f1520c2135d8ba40a2735 (diff)
downloadguile-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--NEWS2
-rw-r--r--libguile/filesys.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 085a3f0e6..83788adc7 100644
--- a/NEWS
+++ b/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)
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);