diff --git a/base.cabal b/base.cabal
index 14aa264ad6b8029f1a4d8ba78dd9a1ab14718740..e08510afd0e199305638f4483354666b71ce9269 100644
--- a/base.cabal
+++ b/base.cabal
@@ -20,7 +20,7 @@ Library {
     -- actually ought to fail.
     if flag(IsGHC) {
         build-depends: rts
-        if os(windows) {
+        if os(mingw32) {
             extra-libraries: wsock32, msvcrt, kernel32, user32, shell32
         }
         exposed-modules: