diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2024-07-29 10:52:01 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2024-07-29 10:52:01 +0200 |
commit | 9daab71f57a84a92e672d78101d4a796a55f8014 (patch) | |
tree | 5177e9ecb372e97693cc337007ba38d26e3a98c0 /dev-ml/core_unix/files | |
parent | dev-ml/core: sameslot for more packages (diff) | |
download | gentoo-9daab71f57a84a92e672d78101d4a796a55f8014.tar.gz gentoo-9daab71f57a84a92e672d78101d4a796a55f8014.tar.bz2 gentoo-9daab71f57a84a92e672d78101d4a796a55f8014.zip |
dev-ml/core_unix: fix musl build
Closes: https://bugs.gentoo.org/936394
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/core_unix/files')
-rw-r--r-- | dev-ml/core_unix/files/core_unix-0.15.2-musl.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch b/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch index fb1101426ba2..f9c3d23b3db9 100644 --- a/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch +++ b/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch @@ -9,3 +9,15 @@ ssize_t ret; if (total_len > THREAD_IO_CUTOFF || contains_mmapped(v_iovecs, count)) { Begin_roots1(v_iovecs); +--- a/linux_ext/src/linux_ext_stubs.c 2024-05-29 19:59:43.955479960 +0200 ++++ b/linux_ext/src/linux_ext_stubs.c 2024-05-29 20:00:26.661018190 +0200 +@@ -243,7 +243,8 @@ + int count = Int_val(v_count); + ssize_t ret; + struct iovec *iovecs = caml_stat_alloc(sizeof(struct iovec) * count); +- struct msghdr msghdr = { NULL, 0, NULL, 0, NULL, 0, 0 }; ++ struct msghdr msghdr; ++ memset(&msghdr, 0, sizeof(msghdr)); + msghdr.msg_iov = iovecs; + msghdr.msg_iovlen = count; + for (--count; count >= 0; --count) { |