sysprof: prepare for musl 1.2.2
This commit is contained in:
parent
c4329c58ae
commit
2990ebbaef
1 changed files with 26 additions and 0 deletions
|
@ -123,3 +123,29 @@ index a80ab89..05bd590 100644
|
||||||
--
|
--
|
||||||
2.28.0
|
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 <stdlib.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
Loading…
Reference in a new issue