From 28863a41e03c762b1f3200fb34230b23f8ffc8a2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Apr 2014 18:57:51 -0400 Subject: avoid build warning from new dbus --- Assistant/Threads/MountWatcher.hs | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3