diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,7 @@
+## 3.0.15.1
+
+* don't use deprecated CRT functions on Windows [#544](https://github.com/yesodweb/wai/pull/544)
+
 ## 3.0.15
 
 * add requestSizeCheck [#525](https://github.com/yesodweb/wai/pull/525)
diff --git a/Network/Wai/Handler/SCGI.hs b/Network/Wai/Handler/SCGI.hs
--- a/Network/Wai/Handler/SCGI.hs
+++ b/Network/Wai/Handler/SCGI.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE ForeignFunctionInterface #-}
+{-# LANGUAGE CPP, ForeignFunctionInterface #-}
 module Network.Wai.Handler.SCGI
     ( run
     , runSendfile
@@ -86,6 +86,16 @@
 foreign import ccall unsafe "accept"
     c'accept :: CInt -> Ptr a -> Ptr a -> IO CInt
 
+#if WINDOWS
+foreign import ccall unsafe "_close"
+    c'close :: CInt -> IO CInt
+
+foreign import ccall unsafe "_write"
+    c'write :: CInt -> Ptr CChar -> CInt -> IO CInt
+
+foreign import ccall unsafe "_read"
+    c'read :: CInt -> Ptr CChar -> CInt -> IO CInt
+#else
 foreign import ccall unsafe "close"
     c'close :: CInt -> IO CInt
 
@@ -94,3 +104,4 @@
 
 foreign import ccall unsafe "read"
     c'read :: CInt -> Ptr CChar -> CInt -> IO CInt
+#endif
diff --git a/wai-extra.cabal b/wai-extra.cabal
--- a/wai-extra.cabal
+++ b/wai-extra.cabal
@@ -1,5 +1,5 @@
 Name:                wai-extra
-Version:             3.0.15
+Version:             3.0.15.1
 Synopsis:            Provides some basic WAI handlers and middleware.
 description:
   Provides basic WAI handler and middleware functionality:
@@ -82,7 +82,7 @@
   README.md
 
 Library
-  Build-Depends:     base                      >= 4 && < 5
+  Build-Depends:     base                      >= 4.6 && < 5
                    , bytestring                >= 0.9.1.4
                    , wai                       >= 3.0.3.0  && < 3.3
                    , old-locale                >= 1.0.0.2  && < 1.1
@@ -95,8 +95,8 @@
                    , text                      >= 0.7
                    , case-insensitive          >= 0.2
                    , data-default-class
-                   , fast-logger               >= 2.1      && < 2.5
-                   , wai-logger                >= 2.0      && < 2.3
+                   , fast-logger               >= 2.4.5    && < 2.5
+                   , wai-logger                >= 2.2.6    && < 2.3
                    , ansi-terminal
                    , resourcet                 >= 0.4.6    && < 1.2
                    , void                      >= 0.5
