aboutsummaryrefslogtreecommitdiffstats
path: root/src/update_walk.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-11-27 20:15:25 +0100
committerMax Kellermann <max@duempel.org>2011-11-27 20:15:25 +0100
commitcd108ba3aa9f4b0b8ebea3ce463c1e6e1e5a5abe (patch)
tree08e7a3d7581d71814554c9f5f5c15899dbbd0f14 /src/update_walk.c
parent2bb5bfa74e52c3a547e5f46e25156cc8d7cade65 (diff)
downloadmpd-cd108ba3aa9f4b0b8ebea3ce463c1e6e1e5a5abe.tar.gz
mpd-cd108ba3aa9f4b0b8ebea3ce463c1e6e1e5a5abe.tar.xz
mpd-cd108ba3aa9f4b0b8ebea3ce463c1e6e1e5a5abe.zip
directory: rename attribute "stat" to "have_stat"
"stat" is a macro on mingw32, which is a pretty stupid thing, and this commit works around this build failure.
Diffstat (limited to 'src/update_walk.c')
-rw-r--r--src/update_walk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update_walk.c b/src/update_walk.c
index 76c07773b..426bd62ff 100644
--- a/src/update_walk.c
+++ b/src/update_walk.c
@@ -86,7 +86,7 @@ directory_set_stat(struct directory *dir, const struct stat *st)
{
dir->inode = st->st_ino;
dir->device = st->st_dev;
- dir->stat = true;
+ dir->have_stat = true;
}
static void
@@ -346,7 +346,7 @@ inodeFoundInParent(struct directory *parent, ino_t inode, dev_t device)
{
#ifndef G_OS_WIN32
while (parent) {
- if (!parent->stat && statDirectory(parent) < 0)
+ if (!parent->have_stat && statDirectory(parent) < 0)
return -1;
if (parent->inode == inode && parent->device == device) {
g_debug("recursive directory found");