summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-28 19:18:08 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-28 19:18:08 -0400
commitf1eb0fbf53d51bc2bd83bca72297404ecc39fe57 (patch)
tree6c8df11867f2f4526fc995365cc655437e5a951c
parentedb563a78e51560e8f68d9d61a40f8c4a4963660 (diff)
ifdef osx includes
-rw-r--r--Assistant/Install.hs6
-rw-r--r--Assistant/Install/AutoStart.hs3
2 files changed, 7 insertions, 2 deletions
diff --git a/Assistant/Install.hs b/Assistant/Install.hs
index 9b950ea4b..1bf424cc9 100644
--- a/Assistant/Install.hs
+++ b/Assistant/Install.hs
@@ -14,8 +14,12 @@ import Assistant.Install.AutoStart
import Assistant.Ssh
import Locations.UserConfig
import Utility.FileMode
-import Utility.FreeDesktop
+
+#ifdef darwin_HOST_OS
import Utility.OSX
+#else
+import Utility.FreeDesktop
+#endif
import System.Posix.Env
diff --git a/Assistant/Install/AutoStart.hs b/Assistant/Install/AutoStart.hs
index 85ce98287..13b4bc7ab 100644
--- a/Assistant/Install/AutoStart.hs
+++ b/Assistant/Install/AutoStart.hs
@@ -10,10 +10,11 @@
module Assistant.Install.AutoStart where
import Utility.FreeDesktop
+#ifdef darwin_HOST_OS
import Utility.OSX
import Utility.Path
-
import System.Directory
+#endif
installAutoStart :: FilePath -> FilePath -> IO ()
installAutoStart command file = do