From: Karel Gardas Date: Fri, 17 Dec 2010 08:45:10 +0000 (+0000) Subject: fix CPP detection of Solaris in NCG X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=fb18c56348c620cc75b129d190dff584392470cb;hp=21551fcf98da2c80972df829428ae80209d87cb8 fix CPP detection of Solaris in NCG --- diff --git a/compiler/nativeGen/Platform.hs b/compiler/nativeGen/Platform.hs index 6c6b124..023d9ac 100644 --- a/compiler/nativeGen/Platform.hs +++ b/compiler/nativeGen/Platform.hs @@ -46,7 +46,7 @@ data OS = OSUnknown | OSLinux | OSDarwin - | OSSolaris + | OSSolaris2 | OSMinGW32 | OSFreeBSD | OSOpenBSD @@ -92,8 +92,8 @@ defaultTargetOS :: OS defaultTargetOS = OSLinux #elif darwin_TARGET_OS defaultTargetOS = OSDarwin -#elif solaris_TARGET_OS -defaultTargetOS = OSSolaris +#elif solaris2_TARGET_OS +defaultTargetOS = OSSolaris2 #elif mingw32_TARGET_OS defaultTargetOS = OSMinGW32 #elif freebsd_TARGET_OS