[tracker] Fix compilation of FS miner if both upower and hal are disabled
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Fix compilation of FS miner if both upower and hal are disabled
- Date: Wed, 30 Jun 2010 14:33:11 +0000 (UTC)
commit 8099bdd7c8409e7819864b4b7e315fd99383041f
Author: Adrien Bustany <abustany gnome org>
Date: Wed Jun 30 16:30:55 2010 +0200
Fix compilation of FS miner if both upower and hal are disabled
Compilation was previously broken because miner_finished_cb would be
ifedf'ed out in that case
src/miners/fs/tracker-miner-files.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 1914f83..e5ed6ae 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1200,6 +1200,8 @@ index_on_battery_cb (GObject *object,
check_battery_status (mf);
}
+#endif /* defined(HAVE_UPOWER) || defined(HAVE_HAL) */
+
/* Called when mining has finished the first time */
static void
miner_finished_cb (TrackerMinerFS *fs,
@@ -1229,8 +1231,6 @@ miner_finished_cb (TrackerMinerFS *fs,
#endif /* defined(HAVE_UPOWER) || defined(HAVE_HAL) */
}
-#endif /* defined(HAVE_UPOWER) || defined(HAVE_HAL) */
-
static void
mount_pre_unmount_cb (GVolumeMonitor *volume_monitor,
GMount *mount,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]