[project @ 2005-01-18 16:28:43 by simonmar]
authorsimonmar <unknown>
Tue, 18 Jan 2005 16:28:43 +0000 (16:28 +0000)
committersimonmar <unknown>
Tue, 18 Jan 2005 16:28:43 +0000 (16:28 +0000)
USE_MMAP on Linux too: this is needed for sparc64-unknown-linux at
least, and since it seems to work on i386-unknown-linux too we might
as well enable it.  We should probably use it on more arches/OSs too.

ghc/rts/Linker.c

index b8969d8..3cd337f 100644 (file)
 #include <sys/wait.h>
 #endif
 
-#if defined(ia64_TARGET_ARCH) || defined(openbsd_TARGET_OS)
+#if defined(ia64_TARGET_ARCH) || defined(openbsd_TARGET_OS) || defined(linux_TARGET_OS)
 #define USE_MMAP
 #include <fcntl.h>
 #include <sys/mman.h>
 
-#if defined(openbsd_TARGET_OS) 
+#if defined(openbsd_TARGET_OS) || defined(linux_TARGET_OS)
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif