--- This is a kludge for bootstrapping with 4.08.X. Given that
--- all distributed compilers >= 5.0 will be compiled with themselves.
--- I don't think this kludge is a problem. And we have to start
--- building with >= 5.0 on Win32 anyway.
-#if __GLASGOW_HASKELL__ > 408
--- use the line below when we can be sure of compiling with GHC >=
--- 5.02, and remove the implementation of rawSystem at the end of this
--- file
-import PrelIOBase -- this can be removed when SystemExts is used
-import CError ( throwErrnoIfMinus1 ) -- as can this
--- import SystemExts ( rawSystem )
+#ifdef mingw32_HOST_OS
+#if __GLASGOW_HASKELL__ > 504
+import System.Cmd ( rawSystem )
+#else
+import SystemExts ( rawSystem )
+#endif