forked from OSchip/llvm-project
[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
This commit is contained in:
parent
f3b6da00f5
commit
8bcbcea929
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue