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 | bc6d21d990dd2897da023a6887c17b7a723e7066 (patch) | |
tree | bd64c616a60f38577111a77abd091cf9424bde11 | |
parent | aea3d38d81ba020c1c3a82bdda8c5fe79e521a86 (diff) | |
download | bcm5719-llvm-bc6d21d990dd2897da023a6887c17b7a723e7066.tar.gz bcm5719-llvm-bc6d21d990dd2897da023a6887c17b7a723e7066.zip |
[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.
llvm-svn: 253703
-rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index c77aa30248b..cc1fcb16a8d 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/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__) */ |