<div dir="ltr">Done, thanks! <div>r199192.<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 9:30 PM, H.J. Lu <span dir="ltr"><<a href="mailto:hjl.tools@gmail.com" target="_blank">hjl.tools@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">struct stat defined in <asm/stat.h> is incorrect for x32. <asm/stat.h><br>
is included to get struct __old_kernel_stat. But struct __old_kernel_stat<br>
isn't used for x86-64 and x32. The first patch includes <sys/stat.h><br>
instead of <asm/stat.h> and comments out size check of struct __old_kernel_stat<br>
for x86-64.<br>
<br>
X32 uses 64-bit integer for time_t and clock_t. X32 defines __x86_64__,<br>
but not _LP64. The second patch uses u64 for time_t and long long for<br>
clock_t when compiling for x32.<br>
<br>
H.J. Lu (2):<br>
Use 64-bit integer on time_t and clock_t for x32<br>
Include <sys/stat.h> if __x86_64__ is defined<br>
<br>
lib/sanitizer_common/sanitizer_platform_limits_linux.cc | 6 +++++-<br>
lib/sanitizer_common/sanitizer_platform_limits_posix.h | 16 ++++++++++++++++<br>
2 files changed, 21 insertions(+), 1 deletion(-)<br>
</blockquote></div><br></div>