Check for right define
authorunc0rr
Wed, 22 Oct 2008 15:45:16 +0000
changeset 1398 29eedf717d0f
parent 1397 471c42a1c358
child 1399 ada2411c1d60
Check for right define
netserver/hedgewars-server.hs
--- a/netserver/hedgewars-server.hs	Wed Oct 22 15:40:49 2008 +0000
+++ b/netserver/hedgewars-server.hs	Wed Oct 22 15:45:16 2008 +0000
@@ -13,7 +13,7 @@
 import HWProto
 import Opts
 
-#ifndef WIN32
+#if !defined(mingw32_HOST_OS)
 import System.Posix
 #endif
 
@@ -101,7 +101,7 @@
 
 
 main = withSocketsDo $ do
-#ifndef WIN32
+#if !defined(mingw32_HOST_OS)
 	installHandler sigPIPE Ignore Nothing;
 #endif
 	putStrLn $ "Listening on port " ++ show (listenPort globalOptions)