We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6fabb7 + 7823d7c commit 4c27594Copy full SHA for 4c27594
Network/Socket/Fcntl.hs
@@ -20,7 +20,7 @@ setNonBlockIfNeeded fd =
20
--
21
-- Since 2.7.0.0.
22
setCloseOnExecIfNeeded :: CInt -> IO ()
23
-#if defined(mingw32_HOST_OS)
+#if defined(mingw32_HOST_OS) || defined(ghcjs_HOST_OS)
24
setCloseOnExecIfNeeded _ = return ()
25
#else
26
setCloseOnExecIfNeeded fd = System.Posix.Internals.setCloseOnExec fd
@@ -36,7 +36,7 @@ foreign import ccall unsafe "fcntl"
36
37
38
getCloseOnExec :: CInt -> IO Bool
39
40
getCloseOnExec _ = return False
41
42
getCloseOnExec fd = do
0 commit comments