From de4a9c61d75bb351a2472b68488ef76e53348fa2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 16 Aug 2020 20:15:00 -0400 Subject: [PATCH] malloc: Fix build with RECYCLE_BIG_ALLOCATIONS not defined --- Libraries/LibC/malloc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibC/malloc.cpp b/Libraries/LibC/malloc.cpp index 02bc14a8b8..08b0e12eb6 100644 --- a/Libraries/LibC/malloc.cpp +++ b/Libraries/LibC/malloc.cpp @@ -174,12 +174,14 @@ static Allocator* allocator_for_size(size_t size, size_t& good_size) return nullptr; } +#ifdef RECYCLE_BIG_ALLOCATIONS static BigAllocator* big_allocator_for_size(size_t size) { if (size == 65536) return &big_allocators()[0]; return nullptr; } +#endif extern "C" {