From e2a4bde315f9c5a399e97f4912ef79ea94d18f63 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 2 Jun 2019 18:21:23 +0200 Subject: [PATCH] FreeBSD: fix malloc in crn_decomp single header file this fix is enough to enable crn decompression in third-party projects --- inc/crn_decomp.h | 3 +++ 1 file changed, 3 insertions(+) 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 #ifdef WIN32 #include +#elif defined(__FreeBSD__) +// has been replaced by +#include // for malloc_usable_size #else #include #endif