Skip to content

Commit

Permalink
Merge pull request haskell#4031 from erikd/master
Browse files Browse the repository at this point in the history
More CPP usgae fixes
  • Loading branch information
erikd authored Oct 24, 2016
2 parents 266c5aa + 9020766 commit 9d25d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/Distribution/Compat/CreatePipe.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9d25d06

Please sign in to comment.