From 3815b9f5f912377b9ad53f728f99d9adeee2d5a7 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Tue, 11 Dec 2018 15:39:30 +0000 Subject: [PATCH] [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 llvm-svn: 348856 --- openmp/runtime/test/ompt/misc/interoperability.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openmp/runtime/test/ompt/misc/interoperability.cpp b/openmp/runtime/test/ompt/misc/interoperability.cpp index 102e6de..b07814e 100644 --- a/openmp/runtime/test/ompt/misc/interoperability.cpp +++ b/openmp/runtime/test/ompt/misc/interoperability.cpp @@ -3,7 +3,11 @@ #include #include +#if !defined(__NetBSD__) #include +#else +#include +#endif #include "callback.h" #include "omp.h" -- 2.7.4