diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-20 20:28:38 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-20 20:28:38 +0000 |
commit | 3e3e29c598a05aa6be8ad847549d95e9a210d33f (patch) | |
tree | 7cac23a52a12f99c5963b394e164247319e4da98 /lib/profile | |
parent | cc03a2a24baaf51c1ae89e8b266f0bacd291f481 (diff) |
[PGO] Fix buildbot failure on FreeBSD (when building __x86_64__ lib)
There seems to be a problem in system header (stdint.h) of FreeBSD
where uint8_t nor uint16_t are defined. Explicitly define the key
types as done for FreeBSD i386.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile')
-rw-r--r-- | lib/profile/InstrProfiling.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/profile/InstrProfiling.h b/lib/profile/InstrProfiling.h index c77aa3024..cc1fcb16a 100644 --- a/lib/profile/InstrProfiling.h +++ b/lib/profile/InstrProfiling.h @@ -27,6 +27,13 @@ typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef uint32_t uintptr_t; +#elif defined(__FreeBSD__) && defined(__x86_64__) +#define PRIu64 "lu" +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; +typedef unsigned long int uintptr_t; #else /* defined(__FreeBSD__) && defined(__i386__) */ |