[project @ 1999-07-03 19:15:26 by sof]
[ghc-hetmet.git] / ghc / lib / misc / SocketPrim.lhs
index d88e3d7..e761185 100644 (file)
@@ -1252,7 +1252,7 @@ use @withSocketsDo@...:
 
 \begin{code}
 withSocketsDo :: IO a -> IO a
-#ifndef _WIN32
+#if !defined(HAVE_WINSOCK_H) || defined(__CYGWIN32__)
 withSocketsDo x = x
 #else
 withSocketsDo act = do