Fix the build on Windows
authorIan Lynagh <igloo@earth.li>
Wed, 4 Nov 2009 17:49:45 +0000 (17:49 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 4 Nov 2009 17:49:45 +0000 (17:49 +0000)
GHC/Conc.lhs

index eac470b..22bf113 100644 (file)
@@ -765,15 +765,13 @@ data DelayReq
   | DelaySTM {-# UNPACK #-} !USecs {-# UNPACK #-} !(TVar Bool)
 
 #ifndef mingw32_HOST_OS
+{-# NOINLINE pendingEvents #-}
 pendingEvents :: IORef [IOReq]
+pendingEvents = unsafePerformIO $ newIORef []
 #endif
-pendingDelays :: IORef [DelayReq]
-{-# NOINLINE pendingEvents #-}
 {-# NOINLINE pendingDelays #-}
-(pendingEvents,pendingDelays) = unsafePerformIO $ do
-  reqs <- newIORef []
-  dels <- newIORef []
-  return (reqs, dels)
+pendingDelays :: IORef [DelayReq]
+pendingDelays = unsafePerformIO $ newIORef []
 
 {-# NOINLINE ioManagerThread #-}
 ioManagerThread :: MVar (Maybe ThreadId)