diff --git a/srcpkgs/sysprof/patches/musl.patch b/srcpkgs/sysprof/patches/musl.patch index 217b7fb6e8..2a4cd9d927 100644 --- a/srcpkgs/sysprof/patches/musl.patch +++ b/srcpkgs/sysprof/patches/musl.patch @@ -138,14 +138,20 @@ Index: meson.build libunwind_dep = dependency('libunwind-generic', required: false) Index: src/libsysprof-capture/sysprof-compat.h =================================================================== ---- src/libsysprof-capture/sysprof-compat.h.orig -+++ src/libsysprof-capture/sysprof-compat.h -@@ -2,7 +2,7 @@ +--- src/libsysprof-capture/sysprof-compat.h 2021-02-05 23:39:58.352258624 +0100 ++++ src/libsysprof-capture/sysprof-compat.h 2021-02-05 23:47:07.662841454 +0100 +@@ -17,6 +17,7 @@ + __result; })) + #endif - #pragma once - --#ifndef __GLIBC__ +#ifndef HAVE_REALLOCARRAY - - #include - #include + static inline void *reallocarray(void *p, size_t nmemb, size_t sz) { + if (sz && (nmemb > ((size_t)-1 / sz))) { + errno = ENOMEM; +@@ -24,5 +25,5 @@ + } + return realloc(p, nmemb * sz); + } +- ++#endif + #endif