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 | 84d57ed8c5061ed6422f84d663997b6e667e6584 (patch) | |
tree | bb94c001547971cd99385f8b7d8a935641c5d86f | |
parent | 4bccfc480674f88a2a5797a9f2446d11db729ef7 (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
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@348856 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | runtime/test/ompt/misc/interoperability.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/test/ompt/misc/interoperability.cpp b/runtime/test/ompt/misc/interoperability.cpp index 102e6de..b07814e 100644 --- a/runtime/test/ompt/misc/interoperability.cpp +++ b/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" |