diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2016-01-07 15:43:26 +0000 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2016-01-07 15:43:26 +0000 |
commit | 03bce14908eb39a2a49825d2a2db5e441653040b (patch) | |
tree | 40b5aa809bcb7b2627030c409da0616a2a2e0a59 | |
parent | dadc3505078a672fccee4cb771f79cfcb0201e46 (diff) | |
download | efl-03bce14908eb39a2a49825d2a2db5e441653040b.tar.gz |
eina mp: also include malloc_np.h on FreeBSD
-rw-r--r-- | src/modules/eina/mp/chained_pool/eina_chained_mempool.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/eina/mp/chained_pool/eina_chained_mempool.c b/src/modules/eina/mp/chained_pool/eina_chained_mempool.c index 8c64c48036..7cb568ee5c 100644 --- a/src/modules/eina/mp/chained_pool/eina_chained_mempool.c +++ b/src/modules/eina/mp/chained_pool/eina_chained_mempool.c @@ -27,8 +27,13 @@ # include <assert.h> #endif -#if defined(EINA_DEBUG_MALLOC) && defined(__linux__) -# include <malloc.h> +#ifdef EINA_DEBUG_MALLOC +# ifdef __linux__ +# include <malloc.h> +# endif +# ifdef __FreeBSD__ +# include <malloc_np.h> +# endif #endif #include "eina_config.h" |