simpler ifdef for linux
This commit is contained in:
parent
7f4d4952ef
commit
2f9b0ba351
2 changed files with 2 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
module Utility.Batch where
|
module Utility.Batch where
|
||||||
|
|
||||||
#if defined(__LINUX__) || defined(__ANDROID__)
|
#if defined(linux_HOST_OS) || defined(__ANDROID__)
|
||||||
import Control.Concurrent.Async
|
import Control.Concurrent.Async
|
||||||
import System.Posix.Process
|
import System.Posix.Process
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@ import System.Posix.Process
|
||||||
- systems, the action is simply ran.
|
- systems, the action is simply ran.
|
||||||
-}
|
-}
|
||||||
batch :: IO a -> IO a
|
batch :: IO a -> IO a
|
||||||
#if defined(__LINUX__) || defined(__ANDROID__)
|
#if defined(linux_HOST_OS) || defined(__ANDROID__)
|
||||||
batch a = wait =<< batchthread
|
batch a = wait =<< batchthread
|
||||||
where
|
where
|
||||||
batchthread = asyncBound $ do
|
batchthread = asyncBound $ do
|
||||||
|
|
|
@ -115,9 +115,6 @@ Executable git-annex
|
||||||
Build-Depends: data-endian
|
Build-Depends: data-endian
|
||||||
CPP-Options: -D__ANDROID__
|
CPP-Options: -D__ANDROID__
|
||||||
|
|
||||||
if os(linux)
|
|
||||||
CPP-Options: -D__LINUX__
|
|
||||||
|
|
||||||
if os(linux) && flag(Inotify)
|
if os(linux) && flag(Inotify)
|
||||||
Build-Depends: hinotify
|
Build-Depends: hinotify
|
||||||
CPP-Options: -DWITH_INOTIFY
|
CPP-Options: -DWITH_INOTIFY
|
||||||
|
|
Loading…
Add table
Reference in a new issue