aboutsummaryrefslogtreecommitdiff
path: root/Utility/Misc.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <id@joeyh.name>2013-05-10 16:57:21 -0500
committerGravatar Joey Hess <id@joeyh.name>2013-05-10 16:57:21 -0500
commitae6293ae6710b0a7580bc9a0045c92d1d5b87036 (patch)
treefbd105bed124fb698fdc5bbdf4eb2d9ccd086979 /Utility/Misc.hs
parent5d0476bf59674b39fa6bad7e4446b5c741181143 (diff)
fixup #if 0 stubs to use #ifndef mingw32_HOST_OS
That's needed in files used to build the configure program. For the other files, I'm keeping my __WINDOWS__ define, as I find that much easier to type. I may search and replace it to use the mingw32_HOST_OS thing later.
Diffstat (limited to 'Utility/Misc.hs')
-rwxr-xr-xUtility/Misc.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/Misc.hs b/Utility/Misc.hs
index 576a6ddbf..da4da0a60 100755
--- a/Utility/Misc.hs
+++ b/Utility/Misc.hs
@@ -15,7 +15,7 @@ import Foreign
import Data.Char
import Data.List
import Control.Applicative
-#if 0
+#ifndef mingw32_HOST_OS
import System.Posix.Process (getAnyProcessStatus)
#endif
@@ -122,7 +122,7 @@ hGetSomeString h sz = do
peekbytes :: Int -> Ptr Word8 -> IO [Word8]
peekbytes len buf = mapM (peekElemOff buf) [0..pred len]
-#if 0
+#ifndef mingw32_HOST_OS
{- Reaps any zombie git processes.
-
- Warning: Not thread safe. Anything that was expecting to wait