Skip to content

Commit 176aa09

Browse files
committed
exporting afunix_compat.h only on Windows
1 parent ad74f21 commit 176aa09

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

network.cabal

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ library
122122

123123
default-language: Haskell2010
124124
include-dirs: include
125-
includes: HsNet.h HsNetDef.h alignment.h win32defs.h afunix_compat.h
126-
install-includes: HsNet.h HsNetDef.h alignment.h win32defs.h afunix_compat.h
125+
includes: HsNet.h HsNetDef.h alignment.h win32defs.h
126+
install-includes: HsNet.h HsNetDef.h alignment.h win32defs.h
127+
if os(windows)
128+
includes: afunix_compat.h
129+
install-includes: afunix_compat.h
130+
127131
ghc-options: -Wall -fwarn-tabs
128132
build-depends:
129133
base >=4.9 && <5,

0 commit comments

Comments
 (0)