mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-14 00:46:21 +03:00
Fix symbol conflict with musl libc
`__libc` prefixed functions are used by musl libc as non-replaceable malloc stubs. Fix this conflict by checking if we are linking against glibc.
This commit is contained in:
parent
f509703af5
commit
18510020e7
1 changed files with 1 additions and 1 deletions
|
|
@ -3239,7 +3239,7 @@ JEMALLOC_EXPORT void *(*__memalign_hook)(size_t alignment, size_t size) =
|
|||
je_memalign;
|
||||
# endif
|
||||
|
||||
# ifdef CPU_COUNT
|
||||
# ifdef __GLIBC__
|
||||
/*
|
||||
* To enable static linking with glibc, the libc specific malloc interface must
|
||||
* be implemented also, so none of glibc's malloc.o functions are added to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue