[compiler-rt] r269587 - Fix FreeBSD build failure

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Sat May 14 21:26:18 PDT 2016


Author: davidxl
Date: Sat May 14 23:26:17 2016
New Revision: 269587

URL: http://llvm.org/viewvc/llvm-project?rev=269587&view=rev
Log:
Fix FreeBSD build failure

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingWriter.c

Modified: compiler-rt/trunk/lib/profile/InstrProfilingWriter.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingWriter.c?rev=269587&r1=269586&r2=269587&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingWriter.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingWriter.c Sat May 14 23:26:17 2016
@@ -11,6 +11,8 @@
 #include "InstrProfilingInternal.h"
 #ifdef _MSC_VER
 #include <malloc.h>
+#elif defined(__FreeBSD__)
+#include <stdlib.h>
 #else
 #include <alloca.h>
 #endif




More information about the llvm-commits mailing list