Don't use MAP_TRYFIXED unless is it defined; otherwise the assert fails.
authorChris Hanson <org/chris-hanson/cph>
Sun, 8 Sep 2019 07:30:51 +0000 (00:30 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 8 Sep 2019 07:30:51 +0000 (00:30 -0700)
src/microcode/ux.c

index 3222d5a5ef987c2f592adeeda375d7e3f4341308..e116eb1c8b1636c67cb8730f4ffeebdcd9c0ca65 100644 (file)
@@ -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