From 2184478c0f6d7528c3570ca557b86c878e5ba3cb 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 42ccfc86..bd57eb4d 100644 --- a/inc/crn_decomp.h +++ b/inc/crn_decomp.h @@ -21,6 +21,9 @@ #include #elif defined(__APPLE__) #include +#elif defined(__FreeBSD__) +// has been replaced by +#include // for malloc_usable_size #else #include #endif