summaryrefslogtreecommitdiff
path: root/compiler/utils/Platform.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-11-25 01:12:47 +0000
committerIan Lynagh <igloo@earth.li>2011-11-25 01:31:50 +0000
commit498467cf44e871a6abdb1e16714f6e91c7b10a80 (patch)
tree22eeb486ec5b5b17e422069d1f3207ea6ef9abbc /compiler/utils/Platform.hs
parent3a907bff7fc7f6fd0c4f1f61b6e16aaed450874d (diff)
downloadhaskell-498467cf44e871a6abdb1e16714f6e91c7b10a80.tar.gz
Fixes for NetBSD
Based on a patch from Arnaud Degroote <degroote@NetBSD.org> in trac #5480.
Diffstat (limited to 'compiler/utils/Platform.hs')
-rw-r--r--compiler/utils/Platform.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs
index e99d70600f..027c510546 100644
--- a/compiler/utils/Platform.hs
+++ b/compiler/utils/Platform.hs
@@ -55,6 +55,7 @@ data OS
| OSMinGW32
| OSFreeBSD
| OSOpenBSD
+ | OSNetBSD
deriving (Read, Show, Eq)
-- | ARM Instruction Set Architecture and Extensions
@@ -90,6 +91,7 @@ osElfTarget :: OS -> Bool
osElfTarget OSLinux = True
osElfTarget OSFreeBSD = True
osElfTarget OSOpenBSD = True
+osElfTarget OSNetBSD = True
osElfTarget OSSolaris2 = True
osElfTarget OSDarwin = False
osElfTarget OSMinGW32 = False