Bug 787588 - d_reclen is dead on DragonFly since 64bit inode support. r=landry

This commit is contained in:
Jan Beich 2012-09-06 21:47:27 +02:00
parent a9f34b4a0d
commit 2bb1187455

View File

@ -49,7 +49,11 @@ class DirReaderBSD {
bool Next() {
if (size_) {
struct dirent* dirent = reinterpret_cast<struct dirent*>(&buf_[offset_]);
#ifdef OS_DRAGONFLY
offset_ += _DIRENT_DIRSIZ(dirent);
#else
offset_ += dirent->d_reclen;
#endif
}
if (offset_ != size_)