summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-20 20:28:38 +0000
committerXinliang David Li <davidxl@google.com>2015-11-20 20:28:38 +0000
commitbc6d21d990dd2897da023a6887c17b7a723e7066 (patch)
treebd64c616a60f38577111a77abd091cf9424bde11
parentaea3d38d81ba020c1c3a82bdda8c5fe79e521a86 (diff)
downloadbcm5719-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.h7
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__) */
OpenPOWER on IntegriCloud