summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <id@joeyh.name>2013-05-10 15:08:53 -0500
committerGravatar Joey Hess <id@joeyh.name>2013-05-10 15:08:53 -0500
commit493db9a024a89f1f696a858789ce55844a180215 (patch)
tree3d34bea905c3623156a07406f027bf50e005c881 /git-annex.cabal
parent720d0230d6333a3cc3a7d533ef09e921ed6b0d8f (diff)
stub out posix stuff for Windows
This is enough to let the configure program build.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 7678b7feb..d14e30cf7 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -86,6 +86,9 @@ Executable git-annex
if flag(Production)
GHC-Options: -O2
+ if os(windows)
+ CPP-Options: -D__WINDOWS__
+
if flag(TestSuite)
Build-Depends: HUnit
CPP-Options: -DWITH_TESTSUITE