c_execvpe & pPrPr_disableITimers: remove these in a Windows build.
-- #hide
module System.Process.Internals (
-- #hide
module System.Process.Internals (
- ProcessHandle(..), PHANDLE, pPrPr_disableITimers, c_execvpe
+ ProcessHandle(..), PHANDLE,
+#if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
+ pPrPr_disableITimers, c_execvpe
+#endif
) where
#if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
) where
#if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
-- ----------------------------------------------------------------------------
-- ----------------------------------------------------------------------------
+#if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
+
-- this function disables the itimer, which would otherwise cause confusing
-- signals to be sent to the new process.
foreign import ccall unsafe "pPrPr_disableITimers"
-- this function disables the itimer, which would otherwise cause confusing
-- signals to be sent to the new process.
foreign import ccall unsafe "pPrPr_disableITimers"
foreign import ccall unsafe "execvpe"
c_execvpe :: CString -> Ptr CString -> Ptr CString -> IO CInt
foreign import ccall unsafe "execvpe"
c_execvpe :: CString -> Ptr CString -> Ptr CString -> IO CInt