diff --git a/srcpkgs/sysprof/patches/musl.patch b/srcpkgs/sysprof/patches/musl.patch index 51f4212889..217b7fb6e8 100644 --- a/srcpkgs/sysprof/patches/musl.patch +++ b/srcpkgs/sysprof/patches/musl.patch @@ -123,3 +123,29 @@ index a80ab89..05bd590 100644 -- 2.28.0 +From here onward, blame sgn +Index: meson.build +=================================================================== +--- meson.build.orig ++++ meson.build +@@ -69,6 +69,7 @@ config_h.set('LOCALEDIR', 'PACKAGE_LOCAL + config_h.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h')) + + config_h.set('HAVE_STRLCPY', cc.has_function('strlcpy')) ++config_h.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray')) + + if get_option('libunwind') + 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 @@ + + #pragma once + +-#ifndef __GLIBC__ ++#ifndef HAVE_REALLOCARRAY + + #include + #include