diff --git a/inc/crn_decomp.h b/inc/crn_decomp.h index 5775745b..c00fbebc 100644 --- a/inc/crn_decomp.h +++ b/inc/crn_decomp.h @@ -19,6 +19,9 @@ #include <stdio.h> #ifdef WIN32 #include <memory.h> +#elif defined(__FreeBSD__) +// <malloc.h> has been replaced by <stdlib.h> +#include <malloc_np.h> // for malloc_usable_size #else #include <malloc.h> #endif