This patch takles with two issues:
- Output stat st_[a|m|c]time fields were holding wrong values. st_[a|m|c]time fields should have contained value of seconds and instead we were filling them with st_[a|m|c]time_nsec fields which hold nanoseconds.
- Build fails for MIPS64 if SANITIZER_ANDROID. Recently <sys/stat.h> from bionic introduced st_[a|m|c]time_nsec macros for compatibility with old NDKs and those clashed with the field names of the <asm/stat.h> kernel_stat structure.
To fix both issues and make sure sanitizer builds on all platforms
we must un-define all compatibility macros and access the fields
directly when copying the 'time' fields.
Patch submitted by: Miodrag Dinic <miodrag.dinic@imgtec.com>
What environments define these macros for 'struct stat'?