diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-16 20:15:00 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:10:06 +0200 |
commit | de4a9c61d75bb351a2472b68488ef76e53348fa2 (patch) | |
tree | 37aa8227dcff3c5ade08fd6c31ec674904c7e52b /Libraries | |
parent | 344090a5b06c1c2506207e669c6ae69336fab0d5 (diff) | |
download | serenity-de4a9c61d75bb351a2472b68488ef76e53348fa2.zip |
malloc: Fix build with RECYCLE_BIG_ALLOCATIONS not defined
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/malloc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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" { |