Skip to content

Commit 9d25d06

Browse files
authored
Merge pull request haskell#4031 from erikd/master
More CPP usgae fixes
2 parents 266c5aa + 9020766 commit 9d25d06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cabal/Distribution/Compat/CreatePipe.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import GHC.IO.FD (mkFD)
2323
import GHC.IO.Device (IODeviceType(Stream))
2424
import GHC.IO.Handle.FD (mkHandleFromFD)
2525
import System.IO (IOMode(ReadMode, WriteMode))
26-
#elif ghcjs_HOST_OS
26+
#elif defined ghcjs_HOST_OS
2727
#else
2828
import System.Posix.IO (fdToHandle)
2929
import qualified System.Posix.IO as Posix
@@ -60,7 +60,7 @@ foreign import ccall "io.h _pipe" c__pipe ::
6060

6161
foreign import ccall "io.h _close" c__close ::
6262
CInt -> Prelude.IO CInt
63-
#elif ghcjs_HOST_OS
63+
#elif defined ghcjs_HOST_OS
6464
createPipe = error "createPipe"
6565
where
6666
_ = callStack

0 commit comments

Comments
 (0)