diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 15:39:30 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 15:39:30 +0000 |
commit | 65a43b3dc7a838e5e27f02a5ed9d69cc16477698 (patch) | |
tree | 54a77a2e828bd8192dd449580ad3f79a73d9c07b /openmp | |
parent | 7e201e9cacd8b8d5104509796f0525000a3df904 (diff) |
[test] [runtime] Do not include alloca.h on NetBSD
On NetBSD, alloca() is in stdlib.h and there is no alloca.h. Adjust
the includes appopriately.
Differential Revision: https://reviews.llvm.org/D55487
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/test/ompt/misc/interoperability.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/runtime/test/ompt/misc/interoperability.cpp b/openmp/runtime/test/ompt/misc/interoperability.cpp index 102e6de5c4a..b07814e239c 100644 --- a/openmp/runtime/test/ompt/misc/interoperability.cpp +++ b/openmp/runtime/test/ompt/misc/interoperability.cpp @@ -3,7 +3,11 @@ #include <iostream> #include <thread> +#if !defined(__NetBSD__) #include <alloca.h> +#else +#include <cstdlib> +#endif #include "callback.h" #include "omp.h" |