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:
45f6144
)
On Mac OS X, use mmap(MAP_FIXED) only for i386.
author
Taylor R Campbell
<campbell@mumble.net>
Mon, 3 Jun 2013 19:17:41 +0000
(19:17 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Mon, 3 Jun 2013 19:17:41 +0000
(19:17 +0000)
src/microcode/ux.h
patch
|
blob
|
history
diff --git
a/src/microcode/ux.h
b/src/microcode/ux.h
index 7c002ab8744da9017f00fc96e31e0de333977afe..2c4866ef8ebcfa198c80132378e4ade9cfc9bdaf 100644
(file)
--- a/
src/microcode/ux.h
+++ b/
src/microcode/ux.h
@@
-129,7
+129,11
@@
USA.
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
-#ifdef __APPLE__
+
+/* On Mac OS X/i386, we instruct the linker to reserve all the usable
+ low virtual address space for us, so we can safely use
+ mmap(MAP_FIXED) to map the heap. */
+#if ((defined (__APPLE__)) && (defined (__IA32__)))
# define USE_MAP_FIXED 1
#endif