aboutsummaryrefslogtreecommitdiff
path: root/Assistant.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-24 14:39:38 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-24 14:39:38 -0400
commiteb7190535a63c3a4f92b6968cea7f3b1df56cdbc (patch)
treea83dac17985e103b94b3c63b1dc33788b8c5cce7 /Assistant.hs
parente8d09e97d3f21ef00cb54e26ea916754bc6fc3cb (diff)
avoid building pushnotifier when there's no xmpp library installed
Diffstat (limited to 'Assistant.hs')
-rw-r--r--Assistant.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Assistant.hs b/Assistant.hs
index b935d45dc..4ac4375e4 100644
--- a/Assistant.hs
+++ b/Assistant.hs
@@ -140,7 +140,9 @@ import Assistant.Threads.NetWatcher
import Assistant.Threads.TransferScanner
import Assistant.Threads.TransferPoller
import Assistant.Threads.ConfigMonitor
+#ifdef WITH_XMPP
import Assistant.Threads.PushNotifier
+#endif
#ifdef WITH_WEBAPP
import Assistant.WebApp
import Assistant.Threads.WebApp
@@ -213,7 +215,9 @@ startAssistant assistant daemonize webappwaiter = withThreadState $ \st -> do
, assist $ netWatcherFallbackThread st dstatus scanremotes pushnotifier
, assist $ transferScannerThread st dstatus scanremotes transferqueue
, assist $ configMonitorThread st dstatus branchhandle commitchan
- , assist $ pushNotifierThread pushnotifier
+#ifdef WITH_XMPP
+ , assist $ pushNotifierThread dstatus pushnotifier
+#endif
, watch $ watchThread st dstatus transferqueue changechan
]
waitForTermination