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.
{-# 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
#else
openFdWithMode = openFd
#endif
+
+#endif