[sanitizer] fix linux_dirent for SANITIZER_X32; based on patch by H.J. Lu

llvm-svn: 209281
This commit is contained in:
Kostya Serebryany 2014-05-21 08:21:13 +00:00
parent fc9c78a6b6
commit b9aa538db1
1 changed files with 5 additions and 0 deletions

View File

@ -454,8 +454,13 @@ void BlockingMutex::CheckLocked() {
// Note that getdents64 uses a different structure format. We only provide the
// 32-bit syscall here.
struct linux_dirent {
#if SANITIZER_X32
u64 d_ino;
u64 d_off;
#else
unsigned long d_ino;
unsigned long d_off;
#endif
unsigned short d_reclen;
char d_name[256];
};