aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/alloca_constant_size.cc
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-08-17 19:35:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-08-17 19:35:22 +0000
commitb5f99338f6073aeb6e393caea8ac1148af69bf2c (patch)
tree73503b1588d85bf45474c2d732c7c96a5d350647 /test/asan/TestCases/alloca_constant_size.cc
parent6f08730ec5f639f05f2f15354171e4a3c9af9dc1 (diff)
downloadsrc-b5f99338f6073aeb6e393caea8ac1148af69bf2c.tar.gz
src-b5f99338f6073aeb6e393caea8ac1148af69bf2c.zip
Vendor import of compiler-rt release_39 branch r278877:vendor/compiler-rt/compiler-rt-release_39-r278877
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=304302 svn path=/vendor/compiler-rt/compiler-rt-release_39-r278877/; revision=304303; tag=vendor/compiler-rt/compiler-rt-release_39-r278877
Diffstat (limited to 'test/asan/TestCases/alloca_constant_size.cc')
-rw-r--r--test/asan/TestCases/alloca_constant_size.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/asan/TestCases/alloca_constant_size.cc b/test/asan/TestCases/alloca_constant_size.cc
index 61f6da710116..a766ae75be07 100644
--- a/test/asan/TestCases/alloca_constant_size.cc
+++ b/test/asan/TestCases/alloca_constant_size.cc
@@ -10,6 +10,8 @@
// MSVC provides _alloca instead of alloca.
#if defined(_MSC_VER) && !defined(alloca)
# define alloca _alloca
+#elif defined(__FreeBSD__)
+#include <stdlib.h>
#else
#include <alloca.h>
#endif