[compiler-rt] r185432 - [sanitizer] Fix Android build.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Jul 2 07:51:31 PDT 2013
Author: eugenis
Date: Tue Jul 2 09:51:31 2013
New Revision: 185432
URL: http://llvm.org/viewvc/llvm-project?rev=185432&view=rev
Log:
[sanitizer] Fix Android build.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc?rev=185432&r1=185431&r2=185432&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc Tue Jul 2 09:51:31 2013
@@ -737,11 +737,12 @@ CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi
CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phnum);
COMPILER_CHECK(IOC_SIZE(0x12345678) == _IOC_SIZE(0x12345678));
+#endif
+#if SANITIZER_LINUX && !SANITIZER_ANDROID
COMPILER_CHECK(sizeof(__sanitizer_glob_t) <= sizeof(glob_t));
CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
CHECK_SIZE_AND_OFFSET(glob_t, gl_pathv);
-
#endif
CHECK_TYPE_SIZE(addrinfo);
More information about the llvm-commits
mailing list