Skip to content

Commit

Permalink
FreeBSD: fix malloc in crn_decomp single header file
Browse files Browse the repository at this point in the history
this fix is enough to enable crn decompression in third-party projects
  • Loading branch information
illwieckz committed Jun 16, 2019
1 parent 98c7429 commit 2184478
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/crn_decomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <memory.h>
#elif defined(__APPLE__)
#include <malloc/malloc.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
Expand Down

0 comments on commit 2184478

Please sign in to comment.