From 9cb75205a0ffb89d9996ba8500493ba35d4b712f Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 18 Jan 2005 16:28:43 +0000 Subject: [PATCH] [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. --- ghc/rts/Linker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4