From: Chris Hanson Date: Sun, 8 Sep 2019 07:30:51 +0000 (-0700) Subject: Don't use MAP_TRYFIXED unless is it defined; otherwise the assert fails. X-Git-Tag: mit-scheme-pucked-10.1.20~11^2~53 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3a19ad8ea2244d08c2b3bd0ec0a9117588da37d3;p=mit-scheme.git Don't use MAP_TRYFIXED unless is it defined; otherwise the assert fails. --- 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