Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit fa62bf6

Browse files
committed
Unbreak building on FreeBSD.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@247347 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 90335d0 commit fa62bf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sanitizer_common/sanitizer_platform_limits_posix.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ namespace __sanitizer {
290290
return 0;
291291
}
292292

293-
#if SANITIZER_LINUX || SANITIZER_FREEBSD
293+
#if SANITIZER_LINUX
294294
unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
295+
#elif SANITIZER_FREEBSD
296+
unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
295297
#endif
296298

297299
#if (SANITIZER_LINUX || SANITIZER_FREEBSD) && !SANITIZER_ANDROID

0 commit comments

Comments
 (0)