sysprof: fix the musl.patch
We still need a TEMP_FAILURE_RETRY definition.
This commit is contained in:
parent
81f317d88c
commit
82fa82299e
1 changed files with 15 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue