sysprof: fix the musl.patch

We still need a TEMP_FAILURE_RETRY definition.
This commit is contained in:
Jürgen Buchmüller 2021-02-05 23:49:44 +01:00
parent 81f317d88c
commit 82fa82299e

View file

@ -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 <stdlib.h>
#include <errno.h>
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