From 3c0738ac1cbe51da438ca01ba74eb751f7080372 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 3 Jul 2023 14:40:59 +0800 Subject: [PATCH] libc_override_osx.h: a small fix for ppc --- src/libc_override_osx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libc_override_osx.h b/src/libc_override_osx.h index 7904744..54bc35d 100644 --- a/src/libc_override_osx.h +++ b/src/libc_override_osx.h @@ -278,9 +278,11 @@ static void ReplaceSystemAlloc() { MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 // Switch to version 6 on OSX 10.6 to support memalign. tcmalloc_zone.version = 6; - tcmalloc_zone.free_definite_size = &mz_free_definite_size; tcmalloc_zone.memalign = &mz_memalign; +#ifndef __POWERPC__ + tcmalloc_zone.free_definite_size = &mz_free_definite_size; tcmalloc_introspection.zone_locked = &mi_zone_locked; +#endif // Request the default purgable zone to force its creation. The // current default zone is registered with the purgable zone for