aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/alloca_constant_size.cc
diff options
context:
space:
mode:
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