[PATCH 2/2] Include <sys/stat.h> if __x86_64__ is defined
H.J. Lu
hjl.tools at gmail.com
Mon Jan 13 09:32:22 PST 2014
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.
---
lib/sanitizer_common/sanitizer_platform_limits_posix.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Include-sys-stat.h-if-__x86_64__-is-defined.patch
Type: text/x-patch
Size: 1943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140113/90b68d8f/attachment.bin>
More information about the llvm-commits
mailing list