Permalink
Browse files

[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
  • Loading branch information...
mgorny committed Dec 11, 2018
1 parent 7e201e9 commit 65a43b3dc7a838e5e27f02a5ed9d69cc16477698
Showing with 4 additions and 0 deletions.
  1. +4 −0 openmp/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"

0 comments on commit 65a43b3

Please sign in to comment.