From 5b76a7c2f2710c5c33a80ddb843f078db66f230f Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Mon, 17 Oct 2022 20:14:04 +0300 Subject: [PATCH] Enable HAS_MALLOC_USABLE_SIZE on FreeBSD (#6402) --- src/util/memory_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/memory_manager.cpp b/src/util/memory_manager.cpp index 85d673f7c..a2c8e31a4 100644 --- a/src/util/memory_manager.cpp +++ b/src/util/memory_manager.cpp @@ -17,6 +17,10 @@ Copyright (c) 2015 Microsoft Corporation # include # define HAS_MALLOC_USABLE_SIZE #endif +#ifdef __FreeBSD__ +# include +# define HAS_MALLOC_USABLE_SIZE +#endif // The following two function are automatically generated by the mk_make.py script. // The script collects ADD_INITIALIZER and ADD_FINALIZER commands in the .h files.