diff --git a/shake.cabal b/shake.cabal
--- a/shake.cabal
+++ b/shake.cabal
@@ -1,7 +1,7 @@
 cabal-version:      >= 1.8
 build-type:         Simple
 name:               shake
-version:            0.3.1
+version:            0.3.2
 license:            BSD3
 license-file:       LICENSE
 category:           Development
@@ -74,8 +74,9 @@
 
     if flag(portable)
         cpp-options: -DPORTABLE
-    elif !os(windows)
-        build-depends: unix >= 2.5.1
+    else
+        if !os(windows)
+            build-depends: unix >= 2.5.1
 
     exposed-modules:
         Development.Shake
