--- vfs/vfs-impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/vfs/vfs-impl.h +++ b/vfs/vfs-impl.h @@ -2,6 +2,7 @@ #define MC_VFS_IMPL_H #ifdef USE_VFS +#include typedef void *vfsid; struct vfs_stamping; @@ -85,7 +86,7 @@ struct vfs_class { */ union vfs_dirent { struct dirent dent; - char _extra_buffer[((int) &((struct dirent *) 0)->d_name) + + char _extra_buffer[offsetof(struct dirent, d_name) + MC_MAXPATHLEN + 1]; };