[Openmp-commits] [openmp] r348856 - [test] [runtime] Do not include alloca.h on NetBSD
Michal Gorny via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 11 07:39:30 PST 2018
Author: mgorny
Date: Tue Dec 11 07:39:30 2018
New Revision: 348856
URL: http://llvm.org/viewvc/llvm-project?rev=348856&view=rev
Log:
[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
Modified:
openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
Modified: openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/misc/interoperability.cpp?rev=348856&r1=348855&r2=348856&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/misc/interoperability.cpp (original)
+++ openmp/trunk/runtime/test/ompt/misc/interoperability.cpp Tue Dec 11 07:39:30 2018
@@ -3,7 +3,11 @@
#include <iostream>
#include <thread>
+#if !defined(__NetBSD__)
#include <alloca.h>
+#else
+#include <cstdlib>
+#endif
#include "callback.h"
#include "omp.h"
More information about the Openmp-commits
mailing list