summaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-04-26 18:57:51 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-04-26 18:57:51 -0400
commit28863a41e03c762b1f3200fb34230b23f8ffc8a2 (patch)
tree905a2022b9b036d2be9256ad691987a8783f67ba /Assistant
parent2a59cb8de87b333ade699a48cf1e4de097a949a7 (diff)
avoid build warning from new dbus
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/Threads/MountWatcher.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Assistant/Threads/MountWatcher.hs b/Assistant/Threads/MountWatcher.hs
index 39ae67537..bd7aad69c 100644
--- a/Assistant/Threads/MountWatcher.hs
+++ b/Assistant/Threads/MountWatcher.hs
@@ -63,7 +63,11 @@ dbusThread urlrenderer = do
wasmounted <- liftIO $ swapMVar mvar nowmounted
handleMounts urlrenderer wasmounted nowmounted
liftIO $ forM_ mountChanged $ \matcher ->
+#if MIN_VERSION_dbus(0,10,7)
+ void $ addMatch client matcher handleevent
+#else
listen client matcher handleevent
+#endif
, do
liftAnnex $
warning "No known volume monitor available through dbus; falling back to mtab polling"