[compiler-rt] r247347 - Unbreak building on FreeBSD.
Roman Divacky via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 14:56:16 PDT 2015
Author: rdivacky
Date: Thu Sep 10 16:56:16 2015
New Revision: 247347
URL: http://llvm.org/viewvc/llvm-project?rev=247347&view=rev
Log:
Unbreak building on FreeBSD.
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=247347&r1=247346&r2=247347&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 Thu Sep 10 16:56:16 2015
@@ -290,8 +290,10 @@ namespace __sanitizer {
return 0;
}
-#if SANITIZER_LINUX || SANITIZER_FREEBSD
+#if SANITIZER_LINUX
unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
+#elif SANITIZER_FREEBSD
+unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
#endif
#if (SANITIZER_LINUX || SANITIZER_FREEBSD) && !SANITIZER_ANDROID
More information about the llvm-commits
mailing list