diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-10-11 18:41:00 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-10-11 18:41:00 +0400 |
commit | 1760f5fdcceaf8414b20b748e3b0e1aa35d93af1 (patch) | |
tree | 5825a7d24a597863fbe3e63aef89a323d7734241 /intern | |
parent | 76c94972da8b6b3c6fc4c491dee1f491b0da3ece (diff) |
Fix FreeBSD build with recent malloc changes, patch by Shane Ambler.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/intern/mallocn_intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/guardedalloc/intern/mallocn_intern.h b/intern/guardedalloc/intern/mallocn_intern.h index 29de1af3b8d..db45b59b884 100644 --- a/intern/guardedalloc/intern/mallocn_intern.h +++ b/intern/guardedalloc/intern/mallocn_intern.h @@ -54,6 +54,8 @@ #if defined(__linux__) # include <malloc.h> # define HAVE_MALLOC_STATS +#elif defined(__FreeBSD__) +# include <malloc_np.h> #elif defined(__APPLE__) # include <malloc/malloc.h> # define malloc_usable_size malloc_size |