summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2026-06-12 12:15:13 -0400
committerRich Felker <dalias@aerifal.cx>2026-06-12 12:15:13 -0400
commit3cc477a2cec8f591f04a74c32ff18a5150e704f3 (patch)
treea2772129f33e0fa07cb4069c90bf86747070482c
parentaf839d4381156d480203448e17d1275c4a512bd6 (diff)
downloadmusl-3cc477a2cec8f591f04a74c32ff18a5150e704f3.tar.gz
fix linkage namespace violations in mallocng
the namespace-safety remappings in glue.h handled mmap, madvise, and mremap correctly but somehow overlooked munmap and mprotect.
-rw-r--r--src/malloc/mallocng/glue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/malloc/mallocng/glue.h b/src/malloc/mallocng/glue.h
index 8c2586fb..c347a4ef 100644
--- a/src/malloc/mallocng/glue.h
+++ b/src/malloc/mallocng/glue.h
@@ -36,8 +36,10 @@
#define brk(p) ((uintptr_t)__syscall(SYS_brk, p))
#define mmap __mmap
+#define munmap __munmap
#define madvise __madvise
#define mremap __mremap
+#define mprotect __mprotect
#define DISABLE_ALIGNED_ALLOC (__malloc_replaced && !__aligned_alloc_replaced)