projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb5cf4c
)
Don't use MAP_TRYFIXED unless is it defined; otherwise the assert fails.
author
Chris Hanson
<org/chris-hanson/cph>
Sun, 8 Sep 2019 07:30:51 +0000
(
00:30
-0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Sun, 8 Sep 2019 07:30:51 +0000
(
00:30
-0700)
src/microcode/ux.c
patch
|
blob
|
history
diff --git
a/src/microcode/ux.c
b/src/microcode/ux.c
index 3222d5a5ef987c2f592adeeda375d7e3f4341308..e116eb1c8b1636c67cb8730f4ffeebdcd9c0ca65 100644
(file)
--- 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