mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 787588 - d_reclen is dead on DragonFly since 64bit inode support. r=landry
This commit is contained in:
parent
a9f34b4a0d
commit
2bb1187455
@ -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_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user