stdin, stderr and stdout are constants on musl and it doesn't provide mallinfo. Both, overwriting std* were used to catch and work around various misbehaviours of glibc, so it's hopefully save to just skip them when building against other libc implementations. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
13 lines
469 B
Diff
13 lines
469 B
Diff
Index: LVM2.2.02.118/lib/mm/memlock.c
|
|
===================================================================
|
|
--- LVM2.2.02.118.orig/lib/mm/memlock.c
|
|
+++ LVM2.2.02.118/lib/mm/memlock.c
|
|
@@ -137,7 +137,7 @@ static void _touch_memory(void *mem, siz
|
|
|
|
static void _allocate_memory(void)
|
|
{
|
|
-#ifndef VALGRIND_POOL
|
|
+#if defined(__GLIBC__) && !defined(VALGRIND_POOL)
|
|
void *stack_mem;
|
|
struct rlimit limit;
|
|
int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
|