diff options
author | Joey Hess <id@joeyh.name> | 2013-05-11 15:03:00 -0500 |
---|---|---|
committer | Joey Hess <id@joeyh.name> | 2013-05-11 15:03:00 -0500 |
commit | d0fa82fb721cdc85438287e29a94cb796b7bc464 (patch) | |
tree | 26a2486b8e715b5937ce41679eafd42c02f2310a /CmdLine.hs | |
parent | 679eaf6077375c5d59501d12c79e0891cbdd904f (diff) |
git-annex now builds on Windows (doesn't work)
Diffstat (limited to 'CmdLine.hs')
-rwxr-xr-x | CmdLine.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CmdLine.hs b/CmdLine.hs index b7b8b70f2..8f4c99269 100755 --- a/CmdLine.hs +++ b/CmdLine.hs @@ -17,7 +17,7 @@ import qualified Control.Exception as E import qualified Data.Map as M import Control.Exception (throw) import System.Console.GetOpt -#ifndef mingw32_HOST_OS +#ifndef __WINDOWS__ import System.Posix.Signals #endif @@ -118,7 +118,9 @@ tryRun' errnum state cmd (a:as) = do {- Actions to perform each time ran. -} startup :: Annex Bool startup = liftIO $ do +#ifndef __WINDOWS__ void $ installHandler sigINT Default Nothing +#endif return True {- Cleanup actions. -} |