summaryrefslogtreecommitdiff
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, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/alloca_constant_size.cc b/test/asan/TestCases/alloca_constant_size.cc
index a766ae75b..57aa31570 100644
--- a/test/asan/TestCases/alloca_constant_size.cc
+++ b/test/asan/TestCases/alloca_constant_size.cc
@@ -10,7 +10,7 @@
// MSVC provides _alloca instead of alloca.
#if defined(_MSC_VER) && !defined(alloca)
# define alloca _alloca
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
#include <stdlib.h>
#else
#include <alloca.h>