Fix build breakage on FreeBSD after rL289878/rL289881
authorDimitry Andric <dimitry@andric.com>
Tue, 20 Dec 2016 07:58:49 +0000 (07:58 +0000)
committerDimitry Andric <dimitry@andric.com>
Tue, 20 Dec 2016 07:58:49 +0000 (07:58 +0000)
commit003fe25b07947a1cce021a9c523f5b4780790198
treeae82443219032e1dc629451ab1bad91cdbfe24c7
parent543f1acadb2f3d10df9c172917fbea9730ebabcb
Fix build breakage on FreeBSD after rL289878/rL289881

Summary:
After rL289878/rL289881, the build on FreeBSD is broken, because
sanitizer_platform_limits_posix.cc attempts to include <utmp.h> and use
`struct utmp`, neither of which are supported anymore on FreeBSD.

Fix this by adding `&& !SANITIZER_FREEBSD` in a few places, and stop
intercepting utmp functions altogether for FreeBSD.

Reviewers: kubabrecka, emaste, eugenis, ed

Subscribers: ed, llvm-commits

Differential Revision: https://reviews.llvm.org/D27902

llvm-svn: 290167
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h