From 43f37894b02e74d87c0474d20ea74e7997d0b872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sun, 10 Jun 2018 21:05:30 +0000 Subject: [PATCH] Use correct stat struct for ftw() check_dir_mtime() is called by ftw() and is given the real stat struct, not its glib version (which may or may not be the same as "struct stat"). This is irrelevant for MSVC (it has no ftw()) and works correctly for MinGW-w64 (which declares stat structures correctly). If mingw.org complains, add a special ifdef for it later. --- gtk/updateiconcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 92f0924f23..cc681c16be 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -70,7 +70,7 @@ static GStatBuf cache_dir_stat; static gboolean cache_up_to_date; static int check_dir_mtime (const char *dir, - const GStatBuf *sb, + const struct stat *sb, int tf) { if (tf != FTW_NS && sb->st_mtime > cache_dir_stat.st_mtime)