diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-12-16 23:01:14 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-12-16 23:01:14 +0000 |
commit | 8bcbcea929d6789f18954a1d7e2a8f114f1ebde0 (patch) | |
tree | 6a9afb38417ea3395452a5c60d191b99cb6116f8 /compiler-rt | |
parent | f3b6da00f587026ef7ca098329b63ec17f155c0d (diff) | |
download | llvm-8bcbcea929d6789f18954a1d7e2a8f114f1ebde0.zip llvm-8bcbcea929d6789f18954a1d7e2a8f114f1ebde0.tar.gz llvm-8bcbcea929d6789f18954a1d7e2a8f114f1ebde0.tar.bz2 |
[sanitizer] Define __sanitizer_clockid_t on FreeBSD
Summary:
https://reviews.llvm.org/D41121 broke the FreeBSD build due to that type not
being defined on FreeBSD. As far as I can tell, it is an int, but I do not have
a way to test the change.
Reviewers: alekseyshl, kparzysz
Reviewed By: kparzysz
Subscribers: kparzysz, emaste, kubamracek, krytarowski, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D41325
llvm-svn: 320931
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h index d8b72a9c8..b1901fb 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -534,7 +534,7 @@ namespace __sanitizer { typedef long __sanitizer_clock_t; #endif -#if SANITIZER_LINUX +#if SANITIZER_LINUX || SANITIZER_FREEBSD typedef int __sanitizer_clockid_t; #endif |