tags 576938 +patch
Hi.
You might consider patch bellow.
Petr
--- src/trackerd/tracker-crawler.c
+++ src/trackerd/tracker-crawler.c
@@ -25,7 +25,9 @@
/* VFAT check, FIXME should we move this elsewhere? */
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef __linux__
#include <linux/msdos_fs.h>
+#endif
#include <unistd.h>
/* End of VFAT check includes */
@@ -389,11 +391,12 @@
int fd = open (path, O_RDONLY, FALSE);
if (fd != -1) {
- __u32 attrs;
gboolean is_hidden = FALSE;
-
+#ifdef __linux__
+ __u32 attrs;
if (ioctl(fd, FAT_IOCTL_GET_ATTRIBUTES, &attrs) == 0)
is_hidden = attrs & ATTR_HIDDEN ? TRUE : FALSE;
+#endif
close (fd);
if (is_hidden) {
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]