diff options
author | Xinliang David Li <davidxl@google.com> | 2016-05-15 04:26:17 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-05-15 04:26:17 +0000 |
commit | 0e776a7336e275c62ae277d8550e71030c57bbb9 (patch) | |
tree | 89f94db0fd4b1e9b862c9e213aba40575904fbbc /lib/profile/InstrProfilingWriter.c | |
parent | 31e6b45c64181fbd3928856bb4a5f0081390ea3e (diff) |
Fix FreeBSD build failure
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingWriter.c')
-rw-r--r-- | lib/profile/InstrProfilingWriter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/profile/InstrProfilingWriter.c b/lib/profile/InstrProfilingWriter.c index 30c1b785c..da0b58df0 100644 --- a/lib/profile/InstrProfilingWriter.c +++ b/lib/profile/InstrProfilingWriter.c @@ -11,6 +11,8 @@ #include "InstrProfilingInternal.h" #ifdef _MSC_VER #include <malloc.h> +#elif defined(__FreeBSD__) +#include <stdlib.h> #else #include <alloca.h> #endif |