X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FnativeGen%2FPlatform.hs;h=6c6b124a1560dff4ca5cf5848f1b84db3dba3723;hp=afbf0b2ae2614b3dd8ee683aae7bef5374f52d37;hb=190b2d90f92f61eb802275729106b5d9fb9a7a7c;hpb=0af418beb1aadcae1df036240151556895d00321 diff --git a/compiler/nativeGen/Platform.hs b/compiler/nativeGen/Platform.hs index afbf0b2..6c6b124 100644 --- a/compiler/nativeGen/Platform.hs +++ b/compiler/nativeGen/Platform.hs @@ -49,6 +49,7 @@ data OS | OSSolaris | OSMinGW32 | OSFreeBSD + | OSOpenBSD deriving (Show, Eq) @@ -56,6 +57,7 @@ data OS osElfTarget :: OS -> Bool osElfTarget OSLinux = True osElfTarget OSFreeBSD = True +osElfTarget OSOpenBSD = True osElfTarget _ = False -- | This is the target platform as far as the #ifdefs are concerned. @@ -96,6 +98,8 @@ defaultTargetOS = OSSolaris defaultTargetOS = OSMinGW32 #elif freebsd_TARGET_OS defaultTargetOS = OSFreeBSD +#elif openbsd_TARGET_OS +defaultTargetOS = OSOpenBSD #else defaultTargetOS = OSUnknown #endif