mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
0365dadad9
commit
43f37894b0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user