avoid cpp failure on windows
Seems that while the module is not imported by anything on windows, it still gets cpped, and MIN_VERSION_unix is not defined so it failed to preprocess.
This commit is contained in:
parent
19d95c9bb8
commit
8adafdd013
1 changed files with 5 additions and 3 deletions
|
@ -8,9 +8,9 @@
|
|||
{-# LANGUAGE CPP #-}
|
||||
{-# OPTIONS_GHC -fno-warn-tabs #-}
|
||||
|
||||
module Utility.OpenFd (
|
||||
openFdWithMode,
|
||||
) where
|
||||
module Utility.OpenFd where
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
|
||||
import System.Posix.IO.ByteString
|
||||
import System.Posix.Types
|
||||
|
@ -23,3 +23,5 @@ openFdWithMode f openmode filemode flags =
|
|||
#else
|
||||
openFdWithMode = openFd
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue