summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2018-06-10 21:05:30 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2018-06-10 21:21:27 +0000
commit43f37894b02e74d87c0474d20ea74e7997d0b872 (patch)
treecf2d90f1226cac07c7f024c13d39511df2c466ae
parent0365dadad9a7713e242a757ebd69f5b725624454 (diff)
downloadgtk+-43f37894b02e74d87c0474d20ea74e7997d0b872.tar.gz
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.
-rw-r--r--gtk/updateiconcache.c2
1 files changed, 1 insertions, 1 deletions
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)