Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
9020766d
Commit
9020766d
authored
Oct 25, 2016
by
Erik de Castro Lopo
Browse files
More CPP usage fixes
parent
266c5aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Compat/CreatePipe.hs
View file @
9020766d
...
...
@@ -23,7 +23,7 @@ import GHC.IO.FD (mkFD)
import
GHC.IO.Device
(
IODeviceType
(
Stream
))
import
GHC.IO.Handle.FD
(
mkHandleFromFD
)
import
System.IO
(
IOMode
(
ReadMode
,
WriteMode
))
#
elif
ghcjs_HOST_OS
#
elif
defined
ghcjs_HOST_OS
#
else
import
System.Posix.IO
(
fdToHandle
)
import
qualified
System.Posix.IO
as
Posix
...
...
@@ -60,7 +60,7 @@ foreign import ccall "io.h _pipe" c__pipe ::
foreign
import
ccall
"io.h _close"
c__close
::
CInt
->
Prelude
.
IO
CInt
#
elif
ghcjs_HOST_OS
#
elif
defined
ghcjs_HOST_OS
createPipe
=
error
"createPipe"
where
_
=
callStack
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment