Fix build with -Wundef

Part of https://github.com/mongoose-os-libs/vfs-fs-lfs/issues/2
This commit is contained in:
Deomid "rojer" Ryabkov
2019-08-07 22:58:13 +01:00
parent db054684a6
commit 303ffb2da4
2 changed files with 2 additions and 2 deletions

2
lfs.c
View File

@@ -1500,7 +1500,7 @@ static int lfs_dir_compact(lfs_t *lfs,
end = begin;
}
}
#if LFS_MIGRATE
#ifdef LFS_MIGRATE
} else if (lfs_pair_cmp(dir->pair, lfs->root) == 0 && lfs->lfs1) {
// we can't relocate our root during migrations, as this would
// cause the superblock to get updated, which would clobber v1