From 3a19ad8ea2244d08c2b3bd0ec0a9117588da37d3 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 8 Sep 2019 00:30:51 -0700 Subject: [PATCH] Don't use MAP_TRYFIXED unless is it defined; otherwise the assert fails. --- src/microcode/ux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microcode/ux.c b/src/microcode/ux.c index 3222d5a5e..e116eb1c8 100644 --- a/src/microcode/ux.c +++ b/src/microcode/ux.c @@ -787,8 +787,10 @@ mmap_heap_malloc_search (unsigned long request, addr = (mmap_heap_malloc_try (min_result, request, MAP_FIXED)); #else addr = (mmap_heap_malloc_search_procfs (request, min_result, max_result)); +#if (MAP_TRYFIXED != 0) if (addr == 0) addr = (mmap_heap_malloc_try (min_result, request, MAP_TRYFIXED)); +#endif if (addr == 0) addr = (mmap_heap_malloc_try (0, request, 0)); #endif -- 2.25.1