From a6539f5cabee4459140e573c6e1fb60fe73fa852 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 8 Apr 2010 20:00:16 +0200 Subject: [PATCH] Don't build VFAT check on non-linux platforms. --- src/miners/fs/tracker-miner-files.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c index 621895b..5e55576 100644 --- a/src/miners/fs/tracker-miner-files.c +++ b/src/miners/fs/tracker-miner-files.c @@ -21,8 +21,10 @@ #include #include +#ifdef __linux__ #include #include +#endif /* __linux__ */ #include #include @@ -1777,6 +1779,7 @@ tracker_miner_files_check_directory (GFile *file, */ is_hidden = file_info && g_file_info_get_is_hidden (file_info); +#ifdef __linux__ /* Second we check if the file is on FAT and if the hidden * attribute is set. GIO does this but ONLY on a Windows OS, * not for Windows files under a Linux OS, so we have to check @@ -1796,6 +1799,7 @@ tracker_miner_files_check_directory (GFile *file, close (fd); } } +#endif /* __linux__ */ if (is_hidden) { /* FIXME: We need to check if the file is actually a -- 1.7.0.4