Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Nov 15, 2023
1 parent fbf57db commit 9a00712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion postgrest.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ library
, containers >= 0.5.7 && < 0.7
, contravariant-extras >= 0.3.3 && < 0.4
, cookie >= 0.4.2 && < 0.5
, directory >= 1.2.6 && < 1.4
, either >= 4.4.1 && < 5.1
, extra >= 1.7.0 && < 2.0
, fuzzyset >= 0.2.3
Expand Down Expand Up @@ -152,7 +153,6 @@ library
if !os(windows)
build-depends:
unix
, directory >= 1.2.6 && < 1.4

executable postgrest
default-language: Haskell2010
Expand Down
8 changes: 5 additions & 3 deletions src/PostgREST/Unix.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ module PostgREST.Unix
, createAndBindDomainSocket
) where

import qualified System.Posix.Signals as Signals
import System.Posix.Types (FileMode)
import System.PosixCompat.Files (setFileMode)
#ifndef mingw32_HOST_OS
import qualified System.Posix.Signals as Signals
#endif
import System.Posix.Types (FileMode)
import System.PosixCompat.Files (setFileMode)

import Data.String (String)
import qualified Network.Socket as NS
Expand Down

0 comments on commit 9a00712

Please sign in to comment.