Add darwin to the list of OSes for which we use mmap
authorIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 14:50:16 +0000 (14:50 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 14:50:16 +0000 (14:50 +0000)
Patch from Barney Stratford

rts/Linker.c

index 1ad077c..e951628 100644 (file)
@@ -71,7 +71,7 @@
 #include <sys/wait.h>
 #endif
 
-#if defined(linux_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS)
+#if defined(linux_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS) || defined(darwin_HOST_OS)
 #define USE_MMAP
 #include <fcntl.h>
 #include <sys/mman.h>