| commit | 47d5569de1047c96ad79f0fd48e79c864d7cf700 | [log] [tgz] |
|---|---|---|
| author | Kostya Serebryany <kcc@google.com> | Tue Jan 14 07:38:53 2014 +0000 |
| committer | Kostya Serebryany <kcc@google.com> | Tue Jan 14 07:38:53 2014 +0000 |
| tree | 612b6d0b2b5d1a64b2eff99a2ad752985f2008fd | |
| parent | 43ea3478bf64e7ebfb588a1a66fbcc2161e768bb [diff] |
[asan] Include <sys/stat.h> if __x86_64__ is defined struct stat defined in <asm/stat.h> is incorrect for x32. <asm/stat.h> is included to get struct __old_kernel_stat. But struct __old_kernel_stat isn't used for x86-64 nor x32. This patch includes <sys/stat.h> instead of <asm/stat.h> and comments out size check of struct __old_kernel_stat for x86-64. Patch by H.J. Lu llvm-svn: 199192