summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_wrapper_malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_wrapper_malloc.h')
-rw-r--r--openmp/runtime/src/kmp_wrapper_malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_wrapper_malloc.h b/openmp/runtime/src/kmp_wrapper_malloc.h
index 58a7ab7de37..453d1ef5e7c 100644
--- a/openmp/runtime/src/kmp_wrapper_malloc.h
+++ b/openmp/runtime/src/kmp_wrapper_malloc.h
@@ -103,7 +103,7 @@
#if KMP_OS_WINDOWS
#include <malloc.h> // Windows* OS: _alloca() declared in "malloc.h".
#define alloca _alloca // Allow to use alloca() with no underscore.
-#elif KMP_OS_FREEBSD
+#elif KMP_OS_FREEBSD || KMP_OS_NETBSD
// Declared in "stdlib.h".
#elif KMP_OS_UNIX
#include <alloca.h> // Linux* OS and OS X*: alloc() declared in "alloca".
OpenPOWER on IntegriCloud