[Openmp-commits] [PATCH] D55487: [openmp] [test] [runtime] Do not include alloca.h on NetBSD

Michał Górny via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Dec 9 04:11:53 PST 2018


mgorny created this revision.
mgorny added reviewers: krytarowski, protze.joachim, Hahnfeld.
Herald added a subscriber: guansong.

On NetBSD, alloca() is in stdlib.h and there is no alloca.h.  Adjust
the includes appopriately.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D55487

Files:
  runtime/test/ompt/misc/interoperability.cpp


Index: runtime/test/ompt/misc/interoperability.cpp
===================================================================
--- runtime/test/ompt/misc/interoperability.cpp
+++ 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55487.177409.patch
Type: text/x-patch
Size: 399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181209/199ae1e4/attachment.bin>


More information about the Openmp-commits mailing list