add NetBSD to some of the #ifdefs (patch partly from 6.8 branch)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 14 Jul 2008 14:50:40 +0000 (14:50 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 14 Jul 2008 14:50:40 +0000 (14:50 +0000)
rts/Linker.c

index 318b3f0..7408572 100644 (file)
 #include <sys/wait.h>
 #endif
 
-#if defined(ia64_HOST_ARCH) || defined(openbsd_HOST_OS) || defined(linux_HOST_OS) || defined(freebsd_HOST_OS)
+#if defined(ia64_HOST_ARCH) || defined(linux_HOST_OS) || defined(freebsd_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS)
 #define USE_MMAP
 #include <fcntl.h>
 #include <sys/mman.h>
 
-#if defined(openbsd_HOST_OS) || defined(linux_HOST_OS) || defined(freebsd_HOST_OS)
+#if defined(linux_HOST_OS) || defined(freebsd_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS)
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif