[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 08:07:54 PST 2018


mgorny updated this revision to Diff 177429.
mgorny added a comment.

Updated as requested by @krytarowski.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55487/new/

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>
+#include <cstdlib>
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) &&  \
+    !defined(__DragonFly__)
 #include <alloca.h>
+#endif
 
 #include "callback.h"
 #include "omp.h"


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


More information about the Openmp-commits mailing list