From: simonmar Date: Tue, 18 Jan 2005 16:28:43 +0000 (+0000) Subject: [project @ 2005-01-18 16:28:43 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1222 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9cb75205a0ffb89d9996ba8500493ba35d4b712f;p=ghc-hetmet.git [project @ 2005-01-18 16:28:43 by simonmar] 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. --- diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index b8969d8..3cd337f 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -58,12 +58,12 @@ #include #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 #include -#if defined(openbsd_TARGET_OS) +#if defined(openbsd_TARGET_OS) || defined(linux_TARGET_OS) #ifdef HAVE_UNISTD_H #include #endif