RSSyl: struct dirent doesn't have d_type member on Windows.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 30 May 2015 16:32:35 +0000 (18:32 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 30 May 2015 16:32:35 +0000 (18:32 +0200)
src/plugins/rssyl/rssyl_update_comments.c

index 4b5cb33..8040f30 100644 (file)
@@ -88,7 +88,11 @@ void rssyl_update_comments(RFolderItem *ritem)
                        return;
                }
 
+#ifdef G_OS_WIN32
+               if( (num = to_number(d->d_name)) > 0) {
+#else
                if( (num = to_number(d->d_name)) > 0 && d->d_type == DT_REG ) {
+#endif
                        debug_print("RSSyl: starting to parse '%s'\n", d->d_name);
 
                        fname = g_strdup_printf("%s%c%s", path, G_DIR_SEPARATOR, d->d_name);