From 82fa82299e16ef15fd5a41e538ced65f41dd6f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 5 Feb 2021 23:49:44 +0100 Subject: [PATCH] sysprof: fix the musl.patch We still need a TEMP_FAILURE_RETRY definition. --- srcpkgs/sysprof/patches/musl.patch | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/srcpkgs/sysprof/patches/musl.patch b/srcpkgs/sysprof/patches/musl.patch index 217b7fb6e82..2a4cd9d927b 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