From 7816a9777bb670dbd1f61cf1421757d5102ce362 Mon Sep 17 00:00:00 2001 From: Brian Kuhl Date: Wed, 6 Sep 2017 20:59:35 -0400 Subject: [PATCH] Update alloc_lib.c --- src/alloc_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/alloc_lib.c b/src/alloc_lib.c index 3b24be4..077768b 100644 --- a/src/alloc_lib.c +++ b/src/alloc_lib.c @@ -15,6 +15,11 @@ #error "DLMALLOC_VERSION undefined" #endif +#ifdef __VXWORKS__ +// no sbrk() in VxWorks, configure dlmalloc to use only mmap() +#define HAVE_MORECORE 0 +#endif + #if DLMALLOC_VERSION == 286 #include "dlmalloc_ext_2_8_6.c" #else